Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 39 lines (28 sloc) 0.723 kb
39acbb7 @mrbichel Added src.
mrbichel authored
1 #include "flowControl.h"
2
3 void flowControl::setup(){
4 // establish connection to arduino
5 }
6
7 void flowControl::update(){
8
9 }
10
11 void flowControl::debugDraw(){
12
ec5604a @mrbichel Prepared for interfacing with arduino. Started work on gui.
mrbichel authored
13 for(int i = 0; i < NUM_CHANNELS; i++) {
14 //channels[i].
15 }
16
17 }
18
19 void flowControl::injectAir(Channel * c, float duration) {
20 openWaterValve(c);
21 c->lock = true;
22 // trigger close watervalve after duration time and set lock false;
23 }
24
25 void flowControl::openWaterValve(Channel * c) {
26 c->waterOpen = true;
27 }
28
29 void flowControl::closeWaterValve(Channel * c) {
30 c->waterOpen = false;
31 }
32
33 void flowControl::openAirValve(Channel * c) {
34 c->airOpen = true;
35 }
36
37 void flowControl::closeAirValve(Channel * c) {
38 c->airOpen = false;
39acbb7 @mrbichel Added src.
mrbichel authored
39 }
Something went wrong with that request. Please try again.