pathfinder-for-autonomous-navigation / FlightSoftware

Flight software, test software, ground software, and mission control.
http://pan-software.readthedocs.io
MIT License
9 stars 6 forks source link

Replace swap with triple line tmp swap #867

Open shihaocao opened 2 years ago

shihaocao commented 2 years ago

This is a hotfix to address #862. The problematic command in issue ticket 862 now works on x86 Linux.

On this PR:

Replace the std::swap call with a triple line copy to a temporary variable.

shihaocao commented 2 years ago

This screenshot shows a successful swap after swapping 19 up to position 2. image

This uplink applied was the one linked in the issue ticket.