diff --git a/src/Vehicle/Vehicle.cc b/src/Vehicle/Vehicle.cc index 31a06f31411b9262f60777869bbeb909ec6f5fa1..303b807d9e598267ea6a7e510080d6a030d93939 100644 --- a/src/Vehicle/Vehicle.cc +++ b/src/Vehicle/Vehicle.cc @@ -732,9 +732,6 @@ void Vehicle::_mavlinkMessageReceived(LinkInterface* link, mavlink_message_t mes case MAVLINK_MSG_ID_RC_CHANNELS: _handleRCChannels(message); break; - case MAVLINK_MSG_ID_RC_CHANNELS_RAW: - _handleRCChannelsRaw(message); - break; case MAVLINK_MSG_ID_BATTERY_STATUS: _handleBatteryStatus(message); break; @@ -1878,51 +1875,6 @@ void Vehicle::_handleRCChannels(mavlink_message_t& message) emit rcChannelsChanged(channels.chancount, pwmValues); } -void Vehicle::_handleRCChannelsRaw(mavlink_message_t& message) -{ - // We handle both RC_CHANNLES and RC_CHANNELS_RAW since different firmware will only - // send one or the other. - - mavlink_rc_channels_raw_t channels; - - mavlink_msg_rc_channels_raw_decode(&message, &channels); - - uint16_t* _rgChannelvalues[cMaxRcChannels] = { - &channels.chan1_raw, - &channels.chan2_raw, - &channels.chan3_raw, - &channels.chan4_raw, - &channels.chan5_raw, - &channels.chan6_raw, - &channels.chan7_raw, - &channels.chan8_raw, - }; - - int pwmValues[cMaxRcChannels]; - int channelCount = 0; - - for (int i=0; ierrorString()); - return; } } else { emit error(_bootloader->errorString()); - return; } + return; } } } else {