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
Sensors/Camera/Camera.h@25:bb5356402687, 2018-11-30 (annotated)
- Committer:
- shimniok
- Date:
- Fri Nov 30 16:11:53 2018 +0000
- Revision:
- 25:bb5356402687
- Parent:
- 0:a6a169de725f
Initial publish of revised version.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
shimniok | 0:a6a169de725f | 1 | #ifndef __CAMERA_H |
shimniok | 0:a6a169de725f | 2 | #define __CAMERA_H |
shimniok | 0:a6a169de725f | 3 | |
shimniok | 0:a6a169de725f | 4 | |
shimniok | 0:a6a169de725f | 5 | #define CAM_WAIT_ACK 0x01 |
shimniok | 0:a6a169de725f | 6 | #define CAM_PARSE_TRACK 0x02 |
shimniok | 0:a6a169de725f | 7 | |
shimniok | 0:a6a169de725f | 8 | #define CAM_ACK 0x00 |
shimniok | 0:a6a169de725f | 9 | #define CAM_NACK 0x01 |
shimniok | 0:a6a169de725f | 10 | |
shimniok | 0:a6a169de725f | 11 | class Camera { |
shimniok | 0:a6a169de725f | 12 | public: |
shimniok | 0:a6a169de725f | 13 | Camera(PinName tx, PinName rx); |
shimniok | 0:a6a169de725f | 14 | void start(void); |
shimniok | 0:a6a169de725f | 15 | void receive(void); |
shimniok | 0:a6a169de725f | 16 | void parse(char c); |
shimniok | 0:a6a169de725f | 17 | |
shimniok | 0:a6a169de725f | 18 | int lastStatus; |
shimniok | 0:a6a169de725f | 19 | Serial serial; |
shimniok | 0:a6a169de725f | 20 | }; |
shimniok | 0:a6a169de725f | 21 | #endif |