uci-uav-forge / uavf_2024

Flight software for Student Unmanned Aerial Systems 2024 competition
MIT License
3 stars 0 forks source link

Fix GPS conversions, add more testing and comment #183

Closed Thomas-Neill closed 5 months ago

Thomas-Neill commented 5 months ago

Summary

This should (?) have finally fixed the GPS conversion code. The problem before is that it was messing up conversions for coordinates in the wrong "quadrant" relative to the homepos; the code before was not accounting for the angles given in azi1 correctly and had a sign error for the x and y displacements. Thanks for catching this @yeekyra.

Test Plan

We can now properly convert the coordinates for the competition flight boundary; the test I added failed with the old version of the code.