fix for navigation scaleLongUp

This commit is contained in:
Jason Short 2011-12-11 09:44:45 -08:00
parent fe336fb749
commit a685e5b575

View File

@ -167,7 +167,7 @@ static void set_next_WP(struct Location *wp)
target_altitude = current_loc.alt;
// this is used to offset the shrinking longitude as we go towards the poles
float rads = (abs(next_WP.lat)/t7) * 0.0174532925;
float rads = (fabs((float)next_WP.lat)/t7) * 0.0174532925;
scaleLongDown = cos(rads);
scaleLongUp = 1.0f/cos(rads);