Skip to content

Commit

Permalink
Only autodrive over air if we actually have sufficient rotor lift. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
linewriter1024 committed Feb 10, 2023
1 parent 6d51640 commit 95521e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vehicle_autodrive.cpp
Expand Up @@ -807,7 +807,7 @@ void vehicle::autodrive_controller::precompute_data()
// initialize car and driver properties
data.land_ok = driven_veh.valid_wheel_config();
data.water_ok = driven_veh.can_float();
data.air_ok = driven_veh.is_flyable();
data.air_ok = driven_veh.has_sufficient_rotorlift();
data.max_speed_tps = std::min( MAX_SPEED_TPS, driven_veh.safe_velocity() / VMIPH_PER_TPS );
data.acceleration.resize( data.max_speed_tps );
for( int speed_tps = 0; speed_tps < data.max_speed_tps; speed_tps++ ) {
Expand Down

0 comments on commit 95521e0

Please sign in to comment.