Skip to content
Snippets Groups Projects
Commit 64e8419a authored by Roman's avatar Roman
Browse files

remove suffix for double

parent 6bc0d4d0
No related branches found
No related tags found
No related merge requests found
......@@ -61,16 +61,16 @@ void BlockWaypointGuidance::update(vehicle_global_position_s &pos,
// heading to waypoint
float psiTrack = get_bearing_to_next_waypoint(
(double)pos.lat / (double)1e7d,
(double)pos.lon / (double)1e7d,
(double)pos.lat / (double)1e7,
(double)pos.lon / (double)1e7,
missionCmd.lat,
missionCmd.lon);
// cross track
struct crosstrack_error_s xtrackError;
get_distance_to_line(&xtrackError,
(double)pos.lat / (double)1e7d,
(double)pos.lon / (double)1e7d,
(double)pos.lat / (double)1e7,
(double)pos.lon / (double)1e7,
lastMissionCmd.lat,
lastMissionCmd.lon,
missionCmd.lat,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment