forked from Archive/PX4-Autopilot
Correct demixing scaling for v-tail mixers
This commit is contained in:
parent
4c2862f6c0
commit
f41e5728fc
|
@ -1001,7 +1001,7 @@ Sensors::ppm_poll()
|
|||
// XXX hardcoded for testing purposes, replace with inverted delta mixer from ROMFS
|
||||
|
||||
/* roll input - mixed roll and pitch channels */
|
||||
manual_control.roll = _rc.chan[_rc.function[ROLL]].scaled - _rc.chan[_rc.function[PITCH]].scaled;
|
||||
manual_control.roll = -0.5f * (_rc.chan[_rc.function[ROLL]].scaled - _rc.chan[_rc.function[PITCH]].scaled);
|
||||
/* pitch input - mixed roll and pitch channels */
|
||||
manual_control.pitch = -0.5f * (_rc.chan[_rc.function[ROLL]].scaled + _rc.chan[_rc.function[PITCH]].scaled);
|
||||
/* yaw input - stick right is positive and positive rotation */
|
||||
|
|
Loading…
Reference in New Issue