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:
parent
c3df203d7c
commit
d0ef95ff9a
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user