While using the px4flow on my i2c bus I can successfully retrieve the correct data from the px4flow’s i2c_frame. However using the exact same method, but sending 0x16 instead of 0x00 to the px4flow and reading the returned bytes into a 25 byte array, I cannot get values which update. Every single byte in the integral frame is remaining constant over many i2c reads.
I read the data in a loop as follows which runs at around 50-70 hz
while (1) {
uint8_t frame;
uint8_t int_frame;
flow->readBytesReg(0x00,frame,22);
flow->readBytesReg(0x16,int_frame,25);
usleep(20000);
}
Does anyone have an idea of what could be going on? I appreciate the help.
-Thomas