mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 17:53:34 +08:00
Correct demixing scaling for v-tail mixers
This commit is contained in:
@@ -1001,7 +1001,7 @@ Sensors::ppm_poll()
|
|||||||
// XXX hardcoded for testing purposes, replace with inverted delta mixer from ROMFS
|
// XXX hardcoded for testing purposes, replace with inverted delta mixer from ROMFS
|
||||||
|
|
||||||
/* roll input - mixed roll and pitch channels */
|
/* 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 */
|
/* pitch input - mixed roll and pitch channels */
|
||||||
manual_control.pitch = -0.5f * (_rc.chan[_rc.function[ROLL]].scaled + _rc.chan[_rc.function[PITCH]].scaled);
|
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 */
|
/* yaw input - stick right is positive and positive rotation */
|
||||||
|
|||||||
Reference in New Issue
Block a user