Plane: fixed channel reversal in HIL
makes it possible to reverse channels
This commit is contained in:
parent
9ff5ba3c3f
commit
abfcee1cef
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user