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
UI/Display/Display.h
- Committer:
- shimniok
- Date:
- 2018-11-30
- Revision:
- 25:bb5356402687
- Parent:
- 20:1c2067937065
File content as of revision 25:bb5356402687:
#ifndef __Display_H #define __Display_H #include "SystemState.h" #include "SerialGraphicLCD.h" #include "Bargraph.h" class Display { public: /** create new display instance * */ Display(void); /** initialize the display * */ void init(void); /** display a status string * @param st is the status string to display */ void status(const char *st); /** display a menu item * @param itemName is the itemName to display */ void menu(const char *itemName); /** display a selected menu item * @param itemName is the itemName to display */ void select(const char *itemName); /** display gauge at a given position (slot) along the bottom */ void gauge(int slot); /** updates data on the display */ void update(SystemState *state); /** initializes the update display */ void redraw(void); SerialGraphicLCD lcd; private: Bargraph v; Bargraph a; Bargraph g1; Bargraph g2; }; #endif