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 __BARGRAPH_H
shimniok 0:826c6171fc1b 2 #define __BARGRAPH_H
shimniok 0:826c6171fc1b 3
shimniok 0:826c6171fc1b 4 #include "SerialGraphicLCD.h"
shimniok 0:826c6171fc1b 5
shimniok 0:826c6171fc1b 6 class Bargraph {
shimniok 0:826c6171fc1b 7 public:
shimniok 0:826c6171fc1b 8 Bargraph(int x, int y, int size, char name);
shimniok 0:826c6171fc1b 9 Bargraph(int x, int y, int size, int width, char name);
shimniok 0:826c6171fc1b 10 void init(void);
shimniok 0:826c6171fc1b 11 void calibrate(float min, float max);
shimniok 0:826c6171fc1b 12 void update(float value);
shimniok 0:826c6171fc1b 13 void update(int value);
shimniok 0:826c6171fc1b 14
shimniok 0:826c6171fc1b 15 static SerialGraphicLCD *lcd;
shimniok 0:826c6171fc1b 16
shimniok 0:826c6171fc1b 17 private:
shimniok 0:826c6171fc1b 18 int _x;
shimniok 0:826c6171fc1b 19 int _y;
shimniok 0:826c6171fc1b 20 int _x2;
shimniok 0:826c6171fc1b 21 int _y2;
shimniok 0:826c6171fc1b 22 int _s;
shimniok 0:826c6171fc1b 23 int _w;
shimniok 0:826c6171fc1b 24 float _min;
shimniok 0:826c6171fc1b 25 float _max;
shimniok 0:826c6171fc1b 26 char _n;
shimniok 0:826c6171fc1b 27 int _last;
shimniok 0:826c6171fc1b 28 };
shimniok 0:826c6171fc1b 29
shimniok 0:826c6171fc1b 30 #endif