linguini1 opened a new pull request, #17076:
URL: https://github.com/apache/nuttx/pull/17076

   ## Summary
   
   The custom implementation of obtaining a timestamp for this driver returned 
an unsigned long, which limited the amount of time the driver could run before 
roll-over quite significantly (since timestamps are in microseconds). This 
change standardizes the driver to use the sensor driver implementation for 
timestamps.
   
   Closes #17030.
   
   ## Impact
   
   Impacts only this driver, provides a longer roll-over time for timestamps.
   
   ## Testing
   
   Tested on two rocket flights :)
   
   First flight without the change, roll-over occurs:
   
   <img width="1028" height="1234" alt="image" 
src="https://github.com/user-attachments/assets/d027d3a1-1177-4f77-aee8-4fa352e69ccc";
 />
   
   This image shows mismatched timestamps, the barometer rolls over every time 
it reaches the limit of `unsigned long`, and the larger timestamps in the 
9024ms range are from a GPS unit.
   
   Second flight after fix was implemented, no roll-over:
   
   <img width="1200" height="600" alt="image" 
src="https://github.com/user-attachments/assets/54c8f7f2-b30f-44fd-84d0-e2e7f7587a48";
 />
   
   This has barometer timestamps which match up with the GPS timestamps and 
exceed the roll-over limit.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to