Open Storm
valve.h
Go to the documentation of this file.
1 
8 #ifndef VALVE_H
9 #define VALVE_H
10 #include <project.h>
11 #include "misc.h"
12 
23 int move_valve(int valve);
24 
30 int test_valve();
31 
38 float32 read_Valve_POS();
39 
50 uint8 zip_valve(char *labels[], float readings[], uint8 *array_ix, int *valve_trigger, uint8 max_size);
51 
63 uint8 zip_valve_2(char *labels[], float readings[], uint8 *array_ix, int *valve_2_trigger, uint8 max_size);
64 
65 #endif
66 /* [] END OF FILE */
Declares miscellaneous utilites.
int move_valve(int valve)
Move valve to the position indicated by valve.
Definition: valve.c:80
float32 read_Valve_POS()
Read the current position of the valve.
Definition: valve.c:36
uint8 zip_valve(char *labels[], float readings[], uint8 *array_ix, int *valve_trigger, uint8 max_size)
Moves first valve and inserts current value of valve_trigger into labels and readings arrays...
Definition: valve.c:162
uint8 zip_valve_2(char *labels[], float readings[], uint8 *array_ix, int *valve_2_trigger, uint8 max_size)
Moves second valve and inserts current value of valve_2_trigger into labels and readings arrays...
Definition: valve.c:207
int test_valve()
Test the valve by opening and closing it.
Definition: valve.c:11