Skip to content

Commit

Permalink
Update src/modules/navigator/mission_feasibility_checker.cpp
Browse files Browse the repository at this point in the history
Remove unneeded cast to double.

Co-Authored-By: Julian Oes <julian@oes.ch>
  • Loading branch information
LorenzMeier and julianoes authored Mar 13, 2020
1 parent 501374b commit fb94b9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/navigator/mission_feasibility_checker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ MissionFeasibilityChecker::checkDistancesBetweenWaypoints(const mission_s &missi

double last_lat = (double)NAN;
double last_lon = (double)NAN;
float last_alt = (double)NAN;
float last_alt = NAN;

/* Go through all waypoints */
for (size_t i = 0; i < mission.count; i++) {
Expand Down

0 comments on commit fb94b9a

Please sign in to comment.