mit-gfx/multicopter_design

RoundAngle function's radian assertion causes memory dump

deksprime opened this issue · 1 comments

When simulating the copter, if the yaw angle becomes exactly -180 the program crashes. This is notified by the trace
copter_viewer: /home/xxx/multicopter_design/projects/copter_simulation/src/inertia_sensor.cpp:88: const double copter_simulation::RoundAngle(double): Assertion `radian >= -M_PI && radian < M_PI' failed. Aborted (core dumped)

Commenting out this resolves the issue.

Thank you for catching this! It should be fixed by commit 19fcbdd now.