Skip to content

Commit

Permalink
Sub: apply yaw input scaling in manual mode
Browse files Browse the repository at this point in the history
Close bluerobotics/ardusub#68
  • Loading branch information
jaxxzer committed Apr 11, 2018
1 parent 2817cc6 commit de0d158
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ArduSub/control_manual.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ void Sub::manual_run()

motors.set_roll(channel_roll->norm_input()*0.67f);
motors.set_pitch(channel_pitch->norm_input()*0.67f);
motors.set_yaw(channel_yaw->norm_input()*0.67f);
motors.set_yaw(channel_yaw->norm_input() * 0.67f * g.acro_yaw_p / ACRO_YAW_P);
motors.set_throttle(channel_throttle->norm_input());
motors.set_forward(channel_forward->norm_input()*0.67f);
motors.set_lateral(channel_lateral->norm_input()*0.67f);
Expand Down

0 comments on commit de0d158

Please sign in to comment.