tim-balloon / TIMflight

Flight MCP repo
0 stars 0 forks source link

Implement angle validity checks on inclinometer data #139

Closed evanmayer closed 4 hours ago

evanmayer commented 2 months ago

Summary

Don't use inclinometer data in the pointing solution for angles outside of the sensor's valid range.

Details

Inclinometer data outside of +/- 60deg is invalid, but is not flagged as such by the sensor, and reported as +/-60. Without a validity check, above angles of 60deg, the inclinometer angle measurements will be constant regardless of angle. These measurements will disagree drastically from other elevation sensor data and pollute the pointing solution.