mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-01 12:57:27 +08:00
[modules] fix nav_survey_poly_osam_setup_towards
This commit is contained in:
@@ -38,7 +38,7 @@ bool_t nav_survey_poly_osam_setup_towards(uint8_t FirstWP, uint8_t Size, float S
|
||||
float dy = waypoints[SecondWP].y - waypoints[FirstWP].y;
|
||||
if (dx == 0.0f) dx = 0.000000001;
|
||||
float ang = atan(dy/dx);
|
||||
return nav_survey_poly_osam_setup_towards(FirstWP, Size, Sweep, DegOfRad(ang));
|
||||
return nav_survey_poly_osam_setup(FirstWP, Size, Sweep, DegOfRad(ang));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user