Refactor velocity resets

This commit is contained in:
Kamil Ritz
2020-05-12 08:05:32 +02:00
committed by Mathieu Bresciani
parent 03191847f9
commit b40adf3dec
2 changed files with 63 additions and 40 deletions
+8
View File
@@ -574,6 +574,14 @@ private:
// reset velocity states of the ekf
bool resetVelocity();
void resetVelocityToGps();
void resetHorizontalVelocityToOpticalFlow();
void resetVelocityToVision();
void resetHorizontalVelocityToZero();
void resetVelocityTo(const Vector3f &vel);
inline void resetHorizontalVelocityTo(const Vector2f &new_horz_vel);