Code for autonomous rover for Sparkfun AVC. DataBus won 3rd in 2012 and the same code was used on Troubled Child, a 1986 Jeep Grand Wagoneer to win 1st in 2014.
Dependencies: mbed Watchdog SDFileSystem DigoleSerialDisp
Diff: Sensors/Camera/Camera.h
- Revision:
- 0:a6a169de725f
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Sensors/Camera/Camera.h Mon May 27 13:26:03 2013 +0000 @@ -0,0 +1,21 @@ +#ifndef __CAMERA_H +#define __CAMERA_H + + +#define CAM_WAIT_ACK 0x01 +#define CAM_PARSE_TRACK 0x02 + +#define CAM_ACK 0x00 +#define CAM_NACK 0x01 + +class Camera { +public: + Camera(PinName tx, PinName rx); + void start(void); + void receive(void); + void parse(char c); + + int lastStatus; + Serial serial; +}; +#endif \ No newline at end of file