refactor commander: move vehicle control mode to ModeUtil

This commit is contained in:
Beat Küng
2022-08-15 09:07:47 +02:00
committed by Daniel Agar
parent f197c8884d
commit dcb9b712bb
8 changed files with 241 additions and 139 deletions
@@ -177,7 +177,7 @@ void Report::reset()
void Report::prepare(uint8_t vehicle_type)
{
// Get mode requirements before running any checks (in particular the mode checks require them)
getModeRequirements(vehicle_type, _status_flags);
mode_util::getModeRequirements(vehicle_type, _status_flags);
}
NavModes Report::getModeGroup(uint8_t nav_state) const