mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
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:
parent
14ce09279f
commit
4e122a3d50
@ -958,7 +958,7 @@ bool AP_IOMCU::setup_mixing(RCMapper *rcmap, int8_t override_chan,
|
|||||||
MIX_UPDATE(mixing.rc_reversed[i], c->get_reverse());
|
MIX_UPDATE(mixing.rc_reversed[i], c->get_reverse());
|
||||||
|
|
||||||
// cope with reversible throttle
|
// 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);
|
MIX_UPDATE(mixing.throttle_is_angle, 1);
|
||||||
} else {
|
} else {
|
||||||
MIX_UPDATE(mixing.throttle_is_angle, 0);
|
MIX_UPDATE(mixing.throttle_is_angle, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user