mirror of https://github.com/ArduPilot/ardupilot
AP_Tuning: adapt to new RC_Channel API
This commit is contained in:
parent
f73f3bedda
commit
ede66aae17
|
@ -64,7 +64,7 @@ void AP_Tuning::check_selector_switch(void)
|
||||||
// no selector switch enabled
|
// no selector switch enabled
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
RC_Channel *selchan = RC_Channel::rc_channel(selector-1);
|
RC_Channel *selchan = RC_Channels::rc_channel(selector-1);
|
||||||
if (selchan == nullptr) {
|
if (selchan == nullptr) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -172,7 +172,7 @@ void AP_Tuning::check_input(uint8_t flightmode)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
RC_Channel *chan = RC_Channel::rc_channel(channel-1);
|
RC_Channel *chan = RC_Channels::rc_channel(channel-1);
|
||||||
if (chan == nullptr) {
|
if (chan == nullptr) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue