getCommandName function
- Device device
Gets the name of the command message for the given device.
Implementation
String getCommandName(Device device) => switch (device) {
Device.ARM => "ArmCommand",
Device.GRIPPER => "GripperCommand",
Device.SCIENCE => "ScienceCommand",
Device.DRIVE => "DriveCommand",
_ => "Unknown",
};