RoundAngle function's radian assertion causes memory dump
deksprime opened this issue · 1 comments
deksprime commented
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.
Deleted user commented
Thank you for catching this! It should be fixed by commit 19fcbdd now.