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

Dependencies:   Watchdog mbed Schedule SimpleFilter LSM303DLM PinDetect DebounceIn Servo

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Camera.h Source File

Camera.h

00001 #ifndef __CAMERA_H
00002 #define __CAMERA_H
00003 
00004 
00005 #define CAM_WAIT_ACK    0x01
00006 #define CAM_PARSE_TRACK 0x02
00007 
00008 #define CAM_ACK         0x00
00009 #define CAM_NACK        0x01
00010 
00011 class Camera {
00012 public:
00013     Camera(PinName tx, PinName rx);
00014     void start(void);
00015     void receive(void);
00016     void parse(char c);
00017     
00018     int lastStatus;
00019     Serial serial;
00020 };    
00021 #endif