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
Diff: UI/LCD/Bargraph.h
- Revision:
- 0:a6a169de725f
diff -r 000000000000 -r a6a169de725f UI/LCD/Bargraph.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/UI/LCD/Bargraph.h Mon May 27 13:26:03 2013 +0000 @@ -0,0 +1,31 @@ +#ifndef __BARGRAPH_H +#define __BARGRAPH_H + +#include "SerialGraphicLCD.h" + +class Bargraph { +public: + Bargraph() {} + Bargraph(int x, int y, int size, char name); + Bargraph(int x, int y, int size, int width, char name); + void init(void); + void calibrate(float min, float max); + void update(float value); + void update(int value); + + static SerialGraphicLCD *lcd; + +private: + int _x; + int _y; + int _x2; + int _y2; + int _s; + int _w; + float _min; + float _max; + char _n; + int _last; +}; + +#endif \ No newline at end of file