Skip to content

Commit

Permalink
AP_Gimbal: revert RC control to the non-inverted control
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurbenemann committed Feb 24, 2015
1 parent e252093 commit ce2abc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/AP_Gimbal/AP_Gimbal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ void AP_Gimbal::send_control()
float angle_input_rad(RC_Channel* rc, float angle_min, float angle_max)
{
float input =rc->norm_input();
float angle = -input*(angle_max - angle_min) + angle_min;
float angle = input*(angle_max - angle_min) + angle_min;

return radians(angle);
}
Expand Down

0 comments on commit ce2abc4

Please sign in to comment.