Fix RC range reversal
This commit is contained in:
parent
55e6ac5fe6
commit
59bd4d731a
@ -121,7 +121,7 @@ RC_Channel::calc_pwm(void)
|
||||
{
|
||||
if(_type == RC_CHANNEL_RANGE){
|
||||
pwm_out = range_to_pwm();
|
||||
radio_out = pwm_out + radio_min;
|
||||
radio_out = (_reverse >=0 ? pwm_out + radio_min : radio_max - pwm_out);
|
||||
|
||||
}else if(_type == RC_CHANNEL_ANGLE_RAW){
|
||||
pwm_out = (float)servo_out * .1;
|
||||
|
Loading…
Reference in New Issue
Block a user