Skip to content

Commit

Permalink
Copter: Remove code that will never be executed
Browse files Browse the repository at this point in the history
  • Loading branch information
muramura committed Aug 11, 2023
1 parent 47efaf9 commit 10bed2b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions ArduCopter/mode_guided.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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:
Expand Down

0 comments on commit 10bed2b

Please sign in to comment.