mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-02 14:08:45 -04:00
GCS_MAVLink: remove check for GPS_RTK_AVAILABLE
This commit is contained in:
parent
e31595c60c
commit
c32d323cd6
@ -914,14 +914,12 @@ bool GCS_MAVLINK::send_gps_raw(AP_GPS &gps)
|
||||
return false;
|
||||
}
|
||||
|
||||
#if GPS_RTK_AVAILABLE
|
||||
if (gps.highest_supported_status(0) > AP_GPS::GPS_OK_FIX_3D) {
|
||||
if (comm_get_txspace(chan) >= MAVLINK_NUM_NON_PAYLOAD_BYTES+MAVLINK_MSG_ID_GPS_RTK_LEN) {
|
||||
gps.send_mavlink_gps_rtk(chan);
|
||||
}
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
if (gps.num_sensors() > 1 && gps.status(1) > AP_GPS::NO_GPS) {
|
||||
|
||||
@ -929,14 +927,12 @@ bool GCS_MAVLINK::send_gps_raw(AP_GPS &gps)
|
||||
gps.send_mavlink_gps2_raw(chan);
|
||||
}
|
||||
|
||||
#if GPS_RTK_AVAILABLE
|
||||
if (gps.highest_supported_status(1) > AP_GPS::GPS_OK_FIX_3D) {
|
||||
if (comm_get_txspace(chan) >=
|
||||
MAVLINK_NUM_NON_PAYLOAD_BYTES+MAVLINK_MSG_ID_GPS2_RTK_LEN) {
|
||||
gps.send_mavlink_gps2_rtk(chan);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
//TODO: Should check what else managed to get through...
|
||||
|
Loading…
Reference in New Issue
Block a user