From fa3b3df0616f6a6c0e51a509161a7be5119237ae Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Sat, 28 Jan 2017 16:24:37 -0500 Subject: [PATCH] astyle src/lib/geo --- src/lib/geo/geo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/geo/geo.c b/src/lib/geo/geo.c index 6912f19070..94f450291e 100644 --- a/src/lib/geo/geo.c +++ b/src/lib/geo/geo.c @@ -342,7 +342,7 @@ __EXPORT float get_bearing_to_next_waypoint(double lat_now, double lon_now, doub double d_lon = lon_next_rad - lon_now_rad; /* conscious mix of double and float trig function to maximize speed and efficiency */ - float theta = atan2f(sin(d_lon) * cos(lat_next_rad) , + float theta = atan2f(sin(d_lon) * cos(lat_next_rad), cos(lat_now_rad) * sin(lat_next_rad) - sin(lat_now_rad) * cos(lat_next_rad) * cos(d_lon)); theta = _wrap_pi(theta);