ardupilot icon indicating copy to clipboard operation
ardupilot copied to clipboard

Possible division by zero in Navigation.cpp (x.x.x? 2.8.1 & 2.9.1)

Open Crashpilot1000 opened this issue 13 years ago • 1 comments

Navigation::calc_long_scaling(int32_t lat) { // this is used to offset the shrinking longitude as we go towards the poles float rads = (fabs(lat) / T7) * 0.0174532925; _scaleLongDown = cos(rads); _scaleLongUp = 1.0f / cos(rads); } I posted it here http://www.diydrones.com/xn/detail/705844:Comment:1126939 Cheers ! Kraut Rob

Crashpilot1000 avatar Feb 14 '13 09:02 Crashpilot1000

This has been rewritten now with the L1 controller.

rmackay9 avatar May 15 '13 00:05 rmackay9