|
|
|
@ -914,7 +914,7 @@ void Navigator::fake_traffic(const char *callsign, float distance, float directi
@@ -914,7 +914,7 @@ void Navigator::fake_traffic(const char *callsign, float distance, float directi
|
|
|
|
|
tr.heading = traffic_heading; //-atan2(vel_e, vel_n); // Course over ground in radians
|
|
|
|
|
tr.hor_velocity = hor_velocity; //sqrtf(vel_e * vel_e + vel_n * vel_n); // The horizontal velocity in m/s
|
|
|
|
|
tr.ver_velocity = ver_velocity; //-vel_d; // The vertical velocity in m/s, positive is up
|
|
|
|
|
strcpy(&tr.callsign[0], callsign); |
|
|
|
|
strncpy(&tr.callsign[0], callsign, sizeof(tr.callsign)); |
|
|
|
|
tr.emitter_type = 0; // Type from ADSB_EMITTER_TYPE enum
|
|
|
|
|
tr.tslc = 2; // Time since last communication in seconds
|
|
|
|
|
tr.flags = 0; // Flags to indicate various statuses including valid data fields
|
|
|
|
|