|
Open Storm
|
Implements functions for operating valve. More...
#include "valve.h"
Functions | |
| int | test_valve () |
| Test the valve by opening and closing it. More... | |
| float32 | read_Valve_POS () |
| Read the current position of the valve. More... | |
| int | move_valve (int valve) |
Move valve to the position indicated by valve. More... | |
| 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. More... | |
| 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. More... | |
Implements functions for operating valve.
| int move_valve | ( | int | valve | ) |
Move valve to the position indicated by valve.
| Position | to move the valve:
|

| float32 read_Valve_POS | ( | ) |
Read the current position of the valve.


| int test_valve | ( | ) |
Test the valve by opening and closing it.

| 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.
| labels | Array to store labels corresponding to each trigger result |
| readings | Array to store trigger results as floating point values |
| array_ix | Array index to label and readings |
| max_size | Maximum size of label and reading arrays (number of entries) |

| 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.
| labels | Array to store labels corresponding to each trigger result |
| readings | Array to store trigger results as floating point values |
| array_ix | Array index to label and readings |
| max_size | Maximum size of label and reading arrays (number of entries) |

1.8.11