Difference between revisions of "UDP Output"

From Silent Wings Wiki
Jump to: navigation, search
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;               // [ 0 ... 0x7FFFFFFF  ] Millisec  Timestamp
+
     unsigned int timestamp;         // Millisec  Timestamp
     double position_latitude;        // [ -90  ... 90      ] Degrees  Position latitude,
+
     double position_latitude;        // Degrees  Position latitude,
     double position_longitude;      // [ -180  ... 180    ] Degrees            longitude,
+
     double position_longitude;      // Degrees            longitude,
     double position_altitude_QNH;    // [ -200  ... 120000  ] m                  altitude - relative to Sea-level
+
     double position_altitude_QNH;    // m                  altitude - relative to Sea-level
     float  altitude_ground;          // [ 0    ... 120000  ] m         Altitude above gnd
+
     float  altitude_ground;          // m         Altitude above gnd
     float  altitude_ground_45;      // [ 0    ... 10000  ] m         gnd 45 degrees ahead (NOT IMPLEMENTED YET),
+
     float  altitude_ground_45;      // m         gnd 45 degrees ahead (NOT IMPLEMENTED YET),
     float  altitude_ground_forward;  // [ 0    ... 10000  ] m         gnd straight ahead
+
     float  altitude_ground_forward;  // m         gnd straight ahead (NOT IMPLEMENTED YET).
     float  flpos_roll;               // [ -180  ... 180    ] Degrees
+
     float  roll;                     // Degrees
     float  flpos_pitch;             // [ -180  ... 180    ] Degrees
+
     float  pitch;                   // Degrees
     float  flpos_yaw;               // [ -180  ... 180    ] Degrees
+
     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. Speed vector in body-axis
+
     float  vx                        // m/sec     Speed vector in body-axis
 
     float  vy  
 
     float  vy  
 
     float  vz                 
 
     float  vz                 
     float  vx_wind                  // m/sec. Speed vector in body-axis, relative to wind
+
     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. Equivalent (indicated) air speed.  
+
     float  v_eas                    // m/sec     Equivalent (indicated) air speed.  
     float  angle_of_attack;          // [ -180  ... 180    ] Degrees  Angle of attack
+
     float  angle_of_attack;          // Degrees  Angle of attack
     float  angle_sideslip;          // [ -180  ... 180    ] Degrees  Sideslip angle
+
     float  angle_sideslip;          // Degrees  Sideslip angle
     float  vario                    // m/s. TE-compensated variometer.
+
     float  vario                    // m/sec    TE-compensated variometer.
     float  heading                  // Degrees. Compass heading.
+
     float  heading                  // Degrees   Compass heading.
     float  rate_of_turn              // Deg/sec. Rate of turn.
+
     float  rate_of_turn              // Deg/sec   Rate of turn.
     float  airpressure              // [ 0    ... 1000000 ] pascal    Local air pressure (at aircraft altitude).
+
     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. Air temperature at aircraft altitude.
+
     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.