Project-CETI / whale-tag-embedded

Source code for the software that is used to build the image for the embedded computer inside the Whale Tags to be deployed onto sperm whales for project CETI
Apache License 2.0
12 stars 5 forks source link

First response from IMU is invalid and initial few samples are zeros #43

Open MattCummings0517 opened 1 year ago

MattCummings0517 commented 1 year ago

The initial request for a reading from the IMU after the main application starts always fails because the returned packet header is invalid (comes back all zeroes). The code currently automatically retries, and on the second time, the header is correct. The next several readings always come back zeroes as if there is a buffering latency. This issue is repeatable and doesn't create any serious issues other than the invalid samples after startup.

There may be a timing requirement associated with the hardware IMU reset that is being violated - e.g. the program is not waiting long enough after a hardware reset assertion before fetching data.