diff --git a/ArduPlane/GCS_Mavlink.cpp b/ArduPlane/GCS_Mavlink.cpp index fe254246f6..74e5f11f36 100644 --- a/ArduPlane/GCS_Mavlink.cpp +++ b/ArduPlane/GCS_Mavlink.cpp @@ -310,19 +310,6 @@ void Plane::send_wind(mavlink_channel_t chan) wind.z); } -/* - send RPM packet - */ -void NOINLINE Plane::send_rpm(mavlink_channel_t chan) -{ - if (rpm_sensor.enabled(0) || rpm_sensor.enabled(1)) { - mavlink_msg_rpm_send( - chan, - rpm_sensor.get_rpm(0), - rpm_sensor.get_rpm(1)); - } -} - // sends a single pid info over the provided channel void GCS_MAVLINK_Plane::send_pid_info(const AP_Logger::PID_Info *pid_info, const uint8_t axis, const float achieved) @@ -451,11 +438,6 @@ bool GCS_MAVLINK_Plane::try_send_message(enum ap_message id) plane.send_wind(chan); break; - case MSG_RPM: - CHECK_PAYLOAD_SIZE(RPM); - plane.send_rpm(chan); - break; - case MSG_ADSB_VEHICLE: CHECK_PAYLOAD_SIZE(ADSB_VEHICLE); plane.adsb.send_adsb_vehicle(chan); diff --git a/ArduPlane/Plane.h b/ArduPlane/Plane.h index 825b0bba18..1b3dbfc8ad 100644 --- a/ArduPlane/Plane.h +++ b/ArduPlane/Plane.h @@ -792,7 +792,6 @@ private: void send_fence_status(mavlink_channel_t chan); void send_servo_out(mavlink_channel_t chan); void send_wind(mavlink_channel_t chan); - void send_rpm(mavlink_channel_t chan); void send_aoa_ssa(mavlink_channel_t chan);