Skip to content

Commit

Permalink
Sub: Add pitch trim to joystick.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
rjehangir committed Apr 19, 2016
1 parent ede8fb3 commit add0963
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ArduSub/joystick.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ void Sub::transform_manual_control_to_rc_override(int16_t x, int16_t y, int16_t
}

// Set channels to override
channels[0] = 1500; // pitch
channels[0] = 1500 + pitchTrim; // pitch
channels[1] = 1500 + rollTrim; // roll
channels[2] = z*throttleScale+throttleBase; // throttle
channels[3] = r*rpyScale+rpyCenter; // yaw
Expand Down

0 comments on commit add0963

Please sign in to comment.