diff --git a/src/modules/navigator/GeofenceBreachAvoidance/geofence_avoidance_planner.h b/src/modules/navigator/GeofenceBreachAvoidance/geofence_avoidance_planner.h index 08de84c02e..1a3b156fe8 100644 --- a/src/modules/navigator/GeofenceBreachAvoidance/geofence_avoidance_planner.h +++ b/src/modules/navigator/GeofenceBreachAvoidance/geofence_avoidance_planner.h @@ -70,7 +70,7 @@ struct PlannedPath { return points[current_index++]; } else { - return matrix::Vector2d{NAN, NAN}; + return matrix::Vector2d{(double)NAN, (double)NAN}; } } @@ -82,7 +82,7 @@ struct PlannedPath { return points[current_index]; } - return matrix::Vector2d{NAN, NAN}; + return matrix::Vector2d{(double)NAN, (double)NAN}; } };