ardupilot
ardupilot copied to clipboard
Possible division by zero in Navigation.cpp (x.x.x? 2.8.1 & 2.9.1)
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
This has been rewritten now with the L1 controller.