5
0
mirror of https://github.com/ArduPilot/ardupilot synced 2025-03-12 01:23:56 -03:00

RC_Channel: use is_bounded_int32()

This commit is contained in:
Andrew Tridgell 2015-11-09 08:47:59 +11:00
parent 090c02e6bd
commit ea5cd99651

View File

@ -517,5 +517,5 @@ uint16_t RC_Channel::get_limit_pwm(LimitValue limit) const
*/
bool RC_Channel::in_trim_dz()
{
return is_bounded(radio_in, radio_trim - _dead_zone, radio_trim + _dead_zone);
return is_bounded_int32(radio_in, radio_trim - _dead_zone, radio_trim + _dead_zone);
}