Code for autonomous ground vehicle, Data Bus, 3rd place winner in 2012 Sparkfun AVC.
Dependencies: Watchdog mbed Schedule SimpleFilter LSM303DLM PinDetect DebounceIn Servo
Bargraph.h
00001 #ifndef __BARGRAPH_H 00002 #define __BARGRAPH_H 00003 00004 #include "SerialGraphicLCD.h" 00005 00006 class Bargraph { 00007 public: 00008 Bargraph(int x, int y, int size, char name); 00009 Bargraph(int x, int y, int size, int width, char name); 00010 void init(void); 00011 void calibrate(float min, float max); 00012 void update(float value); 00013 void update(int value); 00014 00015 static SerialGraphicLCD *lcd; 00016 00017 private: 00018 int _x; 00019 int _y; 00020 int _x2; 00021 int _y2; 00022 int _s; 00023 int _w; 00024 float _min; 00025 float _max; 00026 char _n; 00027 int _last; 00028 }; 00029 00030 #endif
Generated on Tue Jul 12 2022 14:09:25 by 1.7.2