diff --git a/APMrover2/GCS_Mavlink.cpp b/APMrover2/GCS_Mavlink.cpp index 9ac55f454f..26db283dd7 100644 --- a/APMrover2/GCS_Mavlink.cpp +++ b/APMrover2/GCS_Mavlink.cpp @@ -145,15 +145,15 @@ int16_t GCS_MAVLINK_Rover::vfr_hud_throttle() const return rover.g2.motors.get_throttle(); } -void Rover::send_rangefinder(mavlink_channel_t chan) +void GCS_MAVLINK_Rover::send_rangefinder() const { float distance_cm; float voltage; bool got_one = false; // report smaller distance of all rangefinders - for (uint8_t i=0; i