GPS delay compensation for LPE.

This commit is contained in:
James Goppert
2016-03-08 08:23:02 -05:00
parent 02454d0cdc
commit 12489654ea
3 changed files with 41 additions and 18 deletions
@@ -41,6 +41,8 @@ using namespace Eigen;
using namespace control;
static const size_t GPS_HIST_LEN = 2; // delay, at 10 hz, (200 ms)
enum fault_t {
FAULT_NONE = 0,
FAULT_MINOR,
@@ -254,6 +256,9 @@ private:
BlockStats<float, 3> _mocapStats;
BlockStats<double, 3> _gpsStats;
// delay blocks
BlockDelay<double, n_y_gps, GPS_HIST_LEN> _gpsDelay;
// misc
struct pollfd _polls[3];
uint64_t _timeStamp;