1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-17 02:52:12 +01:00

Fix idiotic bug in the stab_refactor

This commit is contained in:
James Cotton 2012-08-01 03:08:51 -05:00
parent c3df203d7c
commit d0ef95ff9a

View File

@ -245,7 +245,7 @@ static void stabilizationTask(void* parameters)
for(uint8_t i=0; i< MAX_AXES; i++)
{
// Check whether this axis mode needs to be reinitialized
bool reinit = (stabDesired.StabilizationMode[i] == previous_mode[i]);
bool reinit = (stabDesired.StabilizationMode[i] != previous_mode[i]);
previous_mode[i] = stabDesired.StabilizationMode[i];
// Apply the selected control law