Difference between revisions of "UDP Output"
From Silent Wings Wiki
Line 17: | Line 17: | ||
The binary protocol is the most compact, and gives the best precision, but can be harder to program and debug. | The binary protocol is the most compact, and gives the best precision, but can be harder to program and debug. | ||
− | unsigned int timestamp; | + | unsigned int timestamp; // Millisec Timestamp |
− | double position_latitude; // | + | double position_latitude; // Degrees Position latitude, |
− | double position_longitude; // | + | double position_longitude; // Degrees longitude, |
− | double position_altitude_QNH; // | + | double position_altitude_QNH; // m altitude - relative to Sea-level |
− | float altitude_ground; // | + | float altitude_ground; // m Altitude above gnd |
− | float altitude_ground_45; // | + | float altitude_ground_45; // m gnd 45 degrees ahead (NOT IMPLEMENTED YET), |
− | float altitude_ground_forward; // | + | float altitude_ground_forward; // m gnd straight ahead (NOT IMPLEMENTED YET). |
− | float | + | float roll; // Degrees |
− | float | + | float pitch; // Degrees |
− | float | + | float yaw; // Degrees |
− | float d_roll | + | float d_roll // Deg/sec Roll speed. |
− | float d_pitch | + | float d_pitch // Deg/sec Pitch speed. |
− | float d_yaw | + | float d_yaw // Deg/sec Yaw speed. |
− | float vx // m/sec | + | float vx // m/sec Speed vector in body-axis |
float vy | float vy | ||
float vz | float vz | ||
− | float vx_wind // m/sec | + | float vx_wind // m/sec Speed vector in body-axis, relative to wind |
float vy_wind | float vy_wind | ||
float vz_wind | float vz_wind | ||
− | float v_eas // m/sec | + | float v_eas // m/sec Equivalent (indicated) air speed. |
− | float angle_of_attack; // | + | float angle_of_attack; // Degrees Angle of attack |
− | float angle_sideslip; // | + | float angle_sideslip; // Degrees Sideslip angle |
− | float vario // m/ | + | float vario // m/sec TE-compensated variometer. |
− | float heading // Degrees | + | float heading // Degrees Compass heading. |
− | float rate_of_turn // Deg/sec | + | float rate_of_turn // Deg/sec Rate of turn. |
− | float airpressure // | + | float airpressure // pascal Local air pressure (at aircraft altitude). |
float density // Air density at aircraft altitude. | float density // Air density at aircraft altitude. | ||
− | float temperature // Celcius | + | float temperature // Celcius Air temperature at aircraft altitude. |
[[Category:Interfaces]] | [[Category:Interfaces]] |
Revision as of 23:15, 19 December 2007
Note: This feature is implemented in Silent Wings 1.08. It will not work with earlier versions
Silent Wings can output various flight data to a configurable UDP socket. This can be useful for add-on developers and cockpit builders. Specifically, we support the Simkits protocol for output of flight data to SimKits instrument panels. In addition, we support the Condor format and our own binary format.
use_output_udp = false output_udp_protocol = simmeters output_udp_address = localhost output_udp_port = 6060 output_udp_rate = 30
Simkits Protocol
Condor Protocol
Binary Protocol
The binary protocol is the most compact, and gives the best precision, but can be harder to program and debug.
unsigned int timestamp; // Millisec Timestamp double position_latitude; // Degrees Position latitude, double position_longitude; // Degrees longitude, double position_altitude_QNH; // m altitude - relative to Sea-level float altitude_ground; // m Altitude above gnd float altitude_ground_45; // m gnd 45 degrees ahead (NOT IMPLEMENTED YET), float altitude_ground_forward; // m gnd straight ahead (NOT IMPLEMENTED YET). float roll; // Degrees float pitch; // Degrees float yaw; // Degrees float d_roll // Deg/sec Roll speed. float d_pitch // Deg/sec Pitch speed. float d_yaw // Deg/sec Yaw speed. float vx // m/sec Speed vector in body-axis float vy float vz float vx_wind // m/sec Speed vector in body-axis, relative to wind float vy_wind float vz_wind float v_eas // m/sec Equivalent (indicated) air speed. float angle_of_attack; // Degrees Angle of attack float angle_sideslip; // Degrees Sideslip angle float vario // m/sec TE-compensated variometer. float heading // Degrees Compass heading. float rate_of_turn // Deg/sec Rate of turn. float airpressure // pascal Local air pressure (at aircraft altitude). float density // Air density at aircraft altitude. float temperature // Celcius Air temperature at aircraft altitude.