Tufts Hybrid Racing Control Node

Revision:
0:9b224b68e7c7
Child:
1:edb687d65942
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ControlNode.h	Thu Jan 12 20:44:16 2012 +0000
@@ -0,0 +1,34 @@
+/*
+ * File: ControlNode/ControlNode.h
+ * Author: William Jessup Salisbury
+ * Company: Tufts Hybrid Racing Team
+ * Copyright: CC BY-NC-SA 3.0
+ * Date: 1/12/2012
+ */
+
+#ifndef CONTROL_NODE_H
+#define CONTROL_NODE_H
+#include "mbed.h"
+
+const PinName CAN_RX = p9;
+const PinName CAN_TX = p10;
+
+const int tickerTimeout_us = 1000;
+
+class ControlNode {
+public:
+    ControlNode();
+    ~ControlNode();
+private:
+    void canReset();
+    void canSync();
+    void canSend();
+    void canReceive();
+    
+    CAN _can;
+    Serial _console;
+    Ticker _syncTimer;
+    char _syncID;
+};
+
+#endif