Plane: fixed channel reversal in HIL

makes it possible to reverse channels
This commit is contained in:
Andrew Tridgell 2014-03-16 17:07:07 +11:00
parent 9ff5ba3c3f
commit abfcee1cef
1 changed files with 4 additions and 4 deletions

View File

@ -341,10 +341,10 @@ void NOINLINE send_servo_out(mavlink_channel_t chan)
chan,
millis(),
0, // port 0
10000 * channel_roll->norm_output(),
10000 * channel_pitch->norm_output(),
10000 * channel_throttle->norm_output(),
10000 * channel_rudder->norm_output(),
10000 * channel_roll->norm_output() * (channel_roll->get_reverse()?-1:1),
10000 * channel_pitch->norm_output() * (channel_pitch->get_reverse()?-1:1),
10000 * channel_throttle->norm_output() * (channel_throttle->get_reverse()?-1:1),
10000 * channel_rudder->norm_output() * (channel_rudder->get_reverse()?-1:1),
0,
0,
0,