Code for autonomous ground vehicle, Data Bus, 3rd place winner in 2012 Sparkfun AVC.
Dependencies: Watchdog mbed Schedule SimpleFilter LSM303DLM PinDetect DebounceIn Servo
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
Generated on Tue Jul 12 2022 14:09:25 by 1.7.2