Skip to content

Commit

Permalink
AP_GPS: Suppress unnecessary telemetry transmission
Browse files Browse the repository at this point in the history
  • Loading branch information
muramura committed Sep 27, 2024
1 parent 946e148 commit 0ce307c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libraries/AP_GPS/AP_GPS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1369,6 +1369,10 @@ uint16_t AP_GPS::gps_yaw_cdeg(uint8_t instance) const

void AP_GPS::send_mavlink_gps_raw(mavlink_channel_t chan)
{
if (params[0].type == GPS_TYPE_NONE) { // If none, do not send telemetry.
return;
}

const Location &loc = location(0);
float hacc = 0.0f;
float vacc = 0.0f;
Expand Down

0 comments on commit 0ce307c

Please sign in to comment.