#pragma once #include #include #include #include class HeaterHandler; FSFW_ENUM(HeaterCommands, DeviceCommandId_t, ((SWITCH_HEATER, 0x0, "Switch Heater"))) class SetHeaterAction : public TemplateAction { public: FSFW_ENUM(SwitchAction, uint8_t, ((SET_SWITCH_OFF, "Set switch to Off"))((SET_SWITCH_ON, "Set switch to On")) ((NONE, "No Action"))) FSFW_ENUM(CmdSourceParam, uint8_t, ((INTERNAL, 0, "Internal"))((EXTERNAL, 1, "External"))) SetHeaterAction(HeaterHandler *owner) : TemplateAction(owner, HeaterCommands::SWITCH_HEATER) {} MinMaxParameter switchNr = MinMaxParameter::createMinMaxParameter(this, "Heater number", 0, 7); Parameter switchAction = Parameter::createParameter(this, "Switch Action"); Parameter cmdSource = Parameter::createParameter(this, "Command Source"); };