removed scaling on control in because it might cause rounding issues.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@2969 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
jasonshort 2011-07-30 23:48:38 +00:00
parent e32f8057bb
commit e63fc0fe68
1 changed files with 6 additions and 6 deletions

View File

@ -89,15 +89,15 @@ RC_Channel::set_pwm(int pwm)
//Serial.print("range ");
control_in = pwm_to_range();
control_in = (control_in < dead_zone) ? 0 : control_in;
if (fabs(scale_output) > 0){
control_in *= scale_output;
}
//if (fabs(scale_output) > 0){
// control_in *= scale_output;
//}
}else{
control_in = pwm_to_angle();
control_in = (abs(control_in) < dead_zone) ? 0 : control_in;
if (fabs(scale_output) > 0){
control_in *= scale_output;
}
//if (fabs(scale_output) > 0){
// control_in *= scale_output;
//}
}
}