Add semi working control code
[matches/MCTX3420.git] / server / control.h
index a1aa5c7..188b13a 100644 (file)
@@ -5,19 +5,14 @@
 #ifndef _CONTROL_H
 #define _CONTROL_H
 
-/** 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);
+extern bool Control_Start(const char *experiment_name);
+extern bool Control_Pause();
+extern bool Control_Resume();
+extern bool Control_Stop();
+extern bool Control_Lock();
+extern void Control_Unlock();
+extern const struct timeval* Control_GetStartTime();
 
 #endif

UCC git Repository :: git.ucc.asn.au