mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-18 03:52:11 +01:00
OP-89
fixed the interpretation of controls to be in sync with OpenPilot stabilisation. git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@925 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
612a1c4e95
commit
515367d38c
@ -140,10 +140,10 @@ void Il2Bridge::transmitUpdate()
|
||||
{
|
||||
// Read ActuatorDesired from autopilot
|
||||
ActuatorDesired::DataFields actData = actDesired->getData();
|
||||
float ailerons = (actData.Roll/50.0)-1.0;
|
||||
float elevator = (actData.Pitch/50.0)-1.0;
|
||||
float rudder = (actData.Yaw/50.0)-1.0;
|
||||
float throttle = (actData.Throttle/50.0)-1.0;
|
||||
float ailerons = -actData.Roll;
|
||||
float elevator = actData.Pitch;
|
||||
float rudder = actData.Yaw;
|
||||
float throttle = actData.Throttle*2-1.0;
|
||||
|
||||
// Send update to Il2
|
||||
QString cmd;
|
||||
|
Loading…
x
Reference in New Issue
Block a user