Fix RC range reversal

This commit is contained in:
Amilcar Lucas 2011-09-11 04:12:46 +02:00
parent 2fa92aea4c
commit 9f14c5f578
1 changed files with 1 additions and 1 deletions

View File

@ -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;