From 2b6d102363cea9c70b1826389da8903f79a1c933 Mon Sep 17 00:00:00 2001 From: Peter de Kok Date: Wed, 20 May 2015 14:52:17 +0200 Subject: 2nd commit, no big changes --- Venus_Skeleton/Venus_Skeleton.ino | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) 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() { } -- cgit v1.2.1