mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-11-29 07:24:13 +01:00
return error if ekf has not inited to prevent arming without proper state estimation
This commit is contained in:
parent
be583dd8bf
commit
b9ae8844a1
@ -328,7 +328,7 @@ static int32_t filter(stateFilter *self, stateEstimation *state)
|
||||
}
|
||||
|
||||
if (!this->inited) {
|
||||
return 1;
|
||||
return 3;
|
||||
}
|
||||
|
||||
float gyros[3] = { DEG2RAD(this->work.gyro[0]), DEG2RAD(this->work.gyro[1]), DEG2RAD(this->work.gyro[2]) };
|
||||
|
Loading…
Reference in New Issue
Block a user