Skip to content

Commit

Permalink
Merge pull request #600 from OpenHD/betaflight_rcsticks
Browse files Browse the repository at this point in the history
Fix betaflight RC channels by uncommenting a couple of lines
  • Loading branch information
peteallenm authored Oct 20, 2023
2 parents 794a4c6 + 7d3f0d0 commit 199ca0e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/telemetry/models/fcmavlinksystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,12 +232,12 @@ bool FCMavlinkSystem::process_message(const mavlink_message_t &msg)
break;
}
case MAVLINK_MSG_ID_RC_CHANNELS_RAW:{
// Seems to be outdated
// Seems to be outdated. Apart from Betaflight, where this is life
//qDebug()<<"Got message RC channels raw";
mavlink_rc_channels_raw_t rc_channels_raw;
mavlink_msg_rc_channels_raw_decode(&msg, &rc_channels_raw);
//const auto tmp=Telemetryutil::mavlink_msg_rc_channels_raw_to_array(rc_channels_raw);
//RCChannelsModel::instanceFC().update_all_channels(tmp);
const auto tmp=Telemetryutil::mavlink_msg_rc_channels_raw_to_array(rc_channels_raw);
RCChannelsModel::instanceFC().update_all_channels(tmp);
set_rc_rssi_percentage( Telemetryutil::mavlink_rc_rssi_to_percent(rc_channels_raw.rssi));
break;
}
Expand Down

0 comments on commit 199ca0e

Please sign in to comment.