mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-04 12:24:11 +01:00
Flight/Stabilization: Move update time storage to before the set to make sure
it goes git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1922 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
8308e4a4fe
commit
ea85e98d7a
@ -193,6 +193,10 @@ static void stabilizationTask(void* parameters)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Save dT
|
||||||
|
actuatorDesired.UpdateTime = dT * 1000;
|
||||||
|
|
||||||
if(manualControl.FlightMode == MANUALCONTROLCOMMAND_FLIGHTMODE_MANUAL)
|
if(manualControl.FlightMode == MANUALCONTROLCOMMAND_FLIGHTMODE_MANUAL)
|
||||||
{
|
{
|
||||||
shouldUpdate = 0;
|
shouldUpdate = 0;
|
||||||
@ -211,8 +215,6 @@ static void stabilizationTask(void* parameters)
|
|||||||
ZeroPids();
|
ZeroPids();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Save dT
|
|
||||||
actuatorDesired.UpdateTime = dT * 1000;
|
|
||||||
// Clear alarms
|
// Clear alarms
|
||||||
AlarmsClear(SYSTEMALARMS_ALARM_STABILIZATION);
|
AlarmsClear(SYSTEMALARMS_ALARM_STABILIZATION);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user