deviceToDataName function
- Device device
Returns the type of data message that would be emitted by this device.
Implementation
String? deviceToDataName(Device device) => switch (device) {
Device.ARM => ArmData().messageName,
Device.DRIVE => DriveData().messageName,
Device.GRIPPER => GripperData().messageName,
Device.SCIENCE => ScienceData().messageName,
Device.ANTENNA => AntennaFirmwareData().messageName,
Device.BASE_STATION => BaseStationData().messageName,
_ => null,
};