![](/media/cache/profiles/2012_sf_avc_095.jpg.50x50_q85.jpg)
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-29
- Revision:
- 20:1c2067937065
- Parent:
- 0:a6a169de725f
File content as of revision 20:1c2067937065:
#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