AP_IOMCU: rename and make enum RC_Channel::ControlType

Type:: is too generic; get_type should probably be get_control_type
This commit is contained in:
Peter Barker 2022-02-25 17:01:06 +11:00 committed by Peter Barker
parent 14ce09279f
commit 4e122a3d50
1 changed files with 1 additions and 1 deletions

View File

@ -958,7 +958,7 @@ bool AP_IOMCU::setup_mixing(RCMapper *rcmap, int8_t override_chan,
MIX_UPDATE(mixing.rc_reversed[i], c->get_reverse());
// cope with reversible throttle
if (i == 2 && c->get_type() == RC_Channel::RC_CHANNEL_TYPE_ANGLE) {
if (i == 2 && c->get_type() == RC_Channel::ControlType::ANGLE) {
MIX_UPDATE(mixing.throttle_is_angle, 1);
} else {
MIX_UPDATE(mixing.throttle_is_angle, 0);