sensor_accel_fifo increase to 32 samples

This commit is contained in:
Daniel Agar 2020-03-31 12:25:38 -04:00
parent 2a37321293
commit 2b82b471c1
2 changed files with 6 additions and 6 deletions

View File

@ -8,6 +8,6 @@ float32 scale
uint8 samples # number of valid samples
int16[16] x # acceleration in the NED X board axis in m/s/s
int16[16] y # acceleration in the NED Y board axis in m/s/s
int16[16] z # acceleration in the NED Z board axis in m/s/s
int16[32] x # acceleration in the NED X board axis in m/s/s
int16[32] y # acceleration in the NED Y board axis in m/s/s
int16[32] z # acceleration in the NED Z board axis in m/s/s

View File

@ -74,9 +74,9 @@ public:
uint8_t samples; // number of samples
float dt; // in microseconds
int16_t x[16];
int16_t y[16];
int16_t z[16];
int16_t x[32];
int16_t y[32];
int16_t z[32];
};
static_assert(sizeof(FIFOSample::x) == sizeof(sensor_accel_fifo_s::x), "FIFOSample.x invalid size");
static_assert(sizeof(FIFOSample::y) == sizeof(sensor_accel_fifo_s::y), "FIFOSample.y invalid size");