Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AirLib/src/safety/SafetyEval.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ namespace airlib
{
//breaking distance at this velocity
float velocity_mag = velocity.norm();
float dest_pos_dist = std::max(velocity_mag * vehicle_params_.vel_to_breaking_dist,
float dest_pos_dist = (std::max)(velocity_mag * vehicle_params_.vel_to_breaking_dist,
vehicle_params_.min_breaking_dist);

//calculate dest_pos cur_pos we will be if we had to break suddenly
Expand Down