summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter de Kok <p.j.s.d.kok@gmail.com>2015-05-20 14:52:17 +0200
committerPeter de Kok <p.j.s.d.kok@gmail.com>2015-05-20 14:52:17 +0200
commit2b6d102363cea9c70b1826389da8903f79a1c933 (patch)
tree60eb018588419a2ce0e9bd1bbf80a0ca97ce6b76
parent086b3ac97243877fb097a477f04d244d0808c2c6 (diff)
downloadcode-2b6d102363cea9c70b1826389da8903f79a1c933.tar.gz
2nd commit, no big changes
-rw-r--r--Venus_Skeleton/Venus_Skeleton.ino31
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() {
}