Copter: Enable processing

This commit is contained in:
muramura 2024-05-22 21:26:48 +09:00 committed by Andrew Tridgell
parent f7cc7eea90
commit da3a9c1cc6
1 changed files with 6 additions and 3 deletions

View File

@ -414,11 +414,14 @@ bool ModeGuided::get_wp(Location& destination) const
case SubMode::Pos:
destination = Location(guided_pos_target_cm.tofloat(), guided_pos_terrain_alt ? Location::AltFrame::ABOVE_TERRAIN : Location::AltFrame::ABOVE_ORIGIN);
return true;
default:
return false;
case SubMode::Angle:
case SubMode::TakeOff:
case SubMode::Accel:
case SubMode::VelAccel:
case SubMode::PosVelAccel:
break;
}
// should never get here but just in case
return false;
}