rosflight / rosplane

Fixed-wing autopilot for ROSflight
BSD 3-Clause "New" or "Revised" License
11 stars 1 forks source link

Check wrapping on ROSplane when flying due north or due south #44

Closed JMoore5353 closed 3 weeks ago

JMoore5353 commented 3 weeks ago

Something is happening with the state estimate (maybe with the wrapping function) when flying due south. We need to figure out what is going on to cause the blips in the estimation data.

bsutherland333 commented 3 weeks ago

It's only an issue when the heading passes due south. North is fine.

iandareid commented 3 weeks ago

A typo was present where the GPS course measure was supposed to be wrapped within 180 degrees of the estimated course. Instead the measure was being wrapped but directly assigned as the estimated course. This was only a when facing south because it was the only time when the two courses were further than 180 degrees from one another.

This was fixed by commit 0bfa6c.