X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=server%2Fcontrol.h;h=a1aa5c733a56933939f23c1fe276afa64d106412;hb=d0f77e15cfa58191a7683caf343037c25be9f31c;hp=2878a88e52fd5200e1fb6b4227f83ac7ce44c3e0;hpb=0f827545e0eb6846608da4aaf4dc8047478070a4;p=matches%2FMCTX3420.git diff --git a/server/control.h b/server/control.h index 2878a88..a1aa5c7 100644 --- a/server/control.h +++ b/server/control.h @@ -5,8 +5,19 @@ #ifndef _CONTROL_H #define _CONTROL_H -/**ID codes for all the actuators**/ -typedef enum Actuators {ACT_NONE = -1, ACT_PREG = 0, ACT_SOLENOID1} Actuators; +/** Number of actuators **/ +#define NUMACTUATORS 2 + +/** List of actuator ids (should be of size NUMACTUATORS) **/ +typedef enum ActuatorId { + ACT_PRESSURE, + ACT_SOLENOID1 +} ActuatorId; + +/** Human readable names for the actuator ids **/ +extern const char * g_actuator_names[NUMACTUATORS]; + +/** ID codes for all the actuators **/ extern void Control_Handler(FCGIContext *context, char *params); #endif