humanName property
The human-readable name of the task.
Implementation
String get humanName {
switch (this) {
case AutonomyState.AUTONOMY_STATE_UNDEFINED: return "Disabled";
case AutonomyState.PATHING: return "Calculating path";
case AutonomyState.APPROACHING: return "Approaching destination";
case AutonomyState.AT_DESTINATION: return "Arrived at destination";
case AutonomyState.DRIVING: return "Driving";
case AutonomyState.SEARCHING: return "Searching for ArUco";
case AutonomyState.ABORTING: return "Aborting";
case AutonomyState.NO_SOLUTION: return "No solution found";
}
// Do not use default or else you'll lose exhaustiveness checking.
throw ArgumentError("Unrecognized status: $this");
}