1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00

return error if ekf has not inited to prevent arming without proper state estimation

This commit is contained in:
Corvus Corax 2013-07-19 15:37:50 +02:00
parent be583dd8bf
commit b9ae8844a1

View File

@ -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]) };