diff options
author | Peter de Kok <p.j.s.d.kok@gmail.com> | 2015-05-20 14:52:17 +0200 |
---|---|---|
committer | Peter de Kok <p.j.s.d.kok@gmail.com> | 2015-05-20 14:52:17 +0200 |
commit | 2b6d102363cea9c70b1826389da8903f79a1c933 (patch) | |
tree | 60eb018588419a2ce0e9bd1bbf80a0ca97ce6b76 | |
parent | 086b3ac97243877fb097a477f04d244d0808c2c6 (diff) | |
download | code-2b6d102363cea9c70b1826389da8903f79a1c933.tar.gz |
2nd commit, no big changes
-rw-r--r-- | Venus_Skeleton/Venus_Skeleton.ino | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/Venus_Skeleton/Venus_Skeleton.ino b/Venus_Skeleton/Venus_Skeleton.ino index f985271..04bb5d3 100644 --- a/Venus_Skeleton/Venus_Skeleton.ino +++ b/Venus_Skeleton/Venus_Skeleton.ino @@ -1,3 +1,10 @@ +// TODO +// +// - limit sendData to x per second + + + + // ***************** // ** DEFINITIONS ** // ***************** @@ -32,7 +39,7 @@ int currValTurret; #define cal // RPi Data type declarations -enum DataType {COMPASS, OBSTACLETURRET, IRLEFT, IRRIGHT, SAMPLETURRET, SAMPLEGRIPPER, BEACONTURRET, LAB}; +enum piDataType {COMPASS, OBSTACLETURRET, IRLEFT, IRRIGHT, SAMPLETURRET, SAMPLEGRIPPER, BEACONTURRET, LAB}; // ********************** @@ -44,6 +51,24 @@ void sendData(int method, int data, int data1 = null, int data2 = null) { } +void readData() { + +} + +void interpretData(piDataType dataType, message) { + switch(dataType) { + case x: + + break; + case y: + + break; + case default: + + break; + } +} + // ********************** // ** SENSOR FUNCTIONS ** @@ -124,6 +149,10 @@ void stopAllServos() { } +// *********************** +// ** ARDUINO FUNCTIONS ** +// *********************** + void setup() { } |