Tufts Hybrid Racing Control Node
Diff: ControlNode.h
- Revision:
- 1:edb687d65942
- Parent:
- 0:9b224b68e7c7
--- a/ControlNode.h Thu Jan 12 20:44:16 2012 +0000 +++ b/ControlNode.h Sun Apr 15 00:13:28 2012 +0000 @@ -8,23 +8,25 @@ #ifndef CONTROL_NODE_H #define CONTROL_NODE_H + #include "mbed.h" -const PinName CAN_RX = p9; -const PinName CAN_TX = p10; +const PinName CAN_RX = p30; +const PinName CAN_TX = p29; -const int tickerTimeout_us = 1000; +const int tickerTimeout_us = 1000000; class ControlNode { public: ControlNode(); ~ControlNode(); + void Init(); private: void canReset(); void canSync(); void canSend(); void canReceive(); - + CAN _can; Serial _console; Ticker _syncTimer;