Skip to content
Snippets Groups Projects
Commit 09ab2c76 authored by Federico Mandelli's avatar Federico Mandelli Committed by Niccolò Betto
Browse files

[bmx-160] Now saves the timestamp in the data when not using the fifo

parent 2f76e62b
Branches
No related tags found
1 merge request!284[bmx-160] Now saves the timestamp in the data when not using the fifo
Pipeline #10614 passed
......@@ -698,11 +698,12 @@ void BMX160::readData()
auto gyrRaw = parseStruct<BMX160Defs::GyrRaw>(buf, idx);
auto accRaw = parseStruct<BMX160Defs::AccRaw>(buf, idx);
auto timestamp = TimestampTimer::getTimestamp();
// Push a new sample into the fifo
pushSample(BMX160Data{
buildAccData(accRaw, lastInterruptTimestamp),
buildGyrData(gyrRaw, lastInterruptTimestamp),
buildMagData(magRaw, lastInterruptTimestamp),
buildAccData(accRaw, timestamp),
buildGyrData(gyrRaw, timestamp),
buildMagData(magRaw, timestamp),
});
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment