From 9d7d502c56d5e6e31db932739011cf288bb6bd3a Mon Sep 17 00:00:00 2001 From: kamilritz Date: Sun, 9 Aug 2020 21:11:54 +0200 Subject: [PATCH] std::sin -> sin --- test/test_geo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_geo.cpp b/test/test_geo.cpp index c59c5a51d1..24179cf9f7 100644 --- a/test/test_geo.cpp +++ b/test/test_geo.cpp @@ -123,7 +123,7 @@ TEST_F(GeoTest, waypoint_from_heading_and_negative_distance) double lon_start = 18; float bearing = 0; float lat_offset = -0.01f; - float dist = CONSTANTS_RADIUS_OF_EARTH * std::sin(M_PI/180) * lat_offset; + float dist = CONSTANTS_RADIUS_OF_EARTH * sin(M_PI/180) * lat_offset; double lat_target = 0; double lon_target = 0;