modules: lpe: push sensor status update to object; prioritize lidar readings over sonar

This commit is contained in:
TSC21
2018-01-14 22:52:41 +01:00
committed by Lorenz Meier
parent b512759336
commit ec1c37e1af
3 changed files with 42 additions and 21 deletions
@@ -377,6 +377,16 @@ private:
uint16_t _sensorFault;
uint8_t _estimatorInitialized;
// sensor update flags
bool _flowUpdated;
bool _gpsUpdated;
bool _visionUpdated;
bool _mocapUpdated;
bool _lidarUpdated;
bool _sonarUpdated;
bool _landUpdated;
bool _baroUpdated;
// state space
Vector<float, n_x> _x; // state vector
Vector<float, n_u> _u; // input vector