mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
Copter: Remove code that will never be executed
This commit is contained in:
parent
b8eb1b8ae2
commit
8f13826383
@ -1087,7 +1087,6 @@ uint32_t ModeGuided::wp_distance() const
|
||||
return get_horizontal_distance_cm(inertial_nav.get_position_xy_cm(), guided_pos_target_cm.tofloat().xy());
|
||||
case SubMode::PosVelAccel:
|
||||
return pos_control->get_pos_error_xy_cm();
|
||||
break;
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
@ -1102,7 +1101,6 @@ int32_t ModeGuided::wp_bearing() const
|
||||
return get_bearing_cd(inertial_nav.get_position_xy_cm(), guided_pos_target_cm.tofloat().xy());
|
||||
case SubMode::PosVelAccel:
|
||||
return pos_control->get_bearing_to_target_cd();
|
||||
break;
|
||||
case SubMode::TakeOff:
|
||||
case SubMode::Accel:
|
||||
case SubMode::VelAccel:
|
||||
|
Loading…
Reference in New Issue
Block a user