Code for autonomous ground vehicle, Data Bus, 3rd place winner in 2012 Sparkfun AVC.

Dependencies:   Watchdog mbed Schedule SimpleFilter LSM303DLM PinDetect DebounceIn Servo

Committer:
shimniok
Date:
Wed Jun 20 14:57:48 2012 +0000
Revision:
0:826c6171fc1b
Updated documentation

Who changed what in which revision?

UserRevisionLine numberNew contents of line
shimniok 0:826c6171fc1b 1 #ifndef __CAMERA_H
shimniok 0:826c6171fc1b 2 #define __CAMERA_H
shimniok 0:826c6171fc1b 3
shimniok 0:826c6171fc1b 4
shimniok 0:826c6171fc1b 5 #define CAM_WAIT_ACK 0x01
shimniok 0:826c6171fc1b 6 #define CAM_PARSE_TRACK 0x02
shimniok 0:826c6171fc1b 7
shimniok 0:826c6171fc1b 8 #define CAM_ACK 0x00
shimniok 0:826c6171fc1b 9 #define CAM_NACK 0x01
shimniok 0:826c6171fc1b 10
shimniok 0:826c6171fc1b 11 class Camera {
shimniok 0:826c6171fc1b 12 public:
shimniok 0:826c6171fc1b 13 Camera(PinName tx, PinName rx);
shimniok 0:826c6171fc1b 14 void start(void);
shimniok 0:826c6171fc1b 15 void receive(void);
shimniok 0:826c6171fc1b 16 void parse(char c);
shimniok 0:826c6171fc1b 17
shimniok 0:826c6171fc1b 18 int lastStatus;
shimniok 0:826c6171fc1b 19 Serial serial;
shimniok 0:826c6171fc1b 20 };
shimniok 0:826c6171fc1b 21 #endif