Class RefSerialMenu

Inheritance Relationships

Base Type

  • public modm::AbstractMenu< DummyAllocator< modm::IAbstractView > >

Class Documentation

class RefSerialMenu : public modm::AbstractMenu<DummyAllocator<modm::IAbstractView>>

A menu that displays various information about the referee system. The information is designed to mirror the referee system’s MCM’s OLED, which will allow you to diagnose if the refereee system is working properly.

Current information drawn:

  • Robot Type/ID

  • HP

  • 17mmSpeed

  • 17mmHeat

  • 42mmSpeed

  • 42mmHeat

  • PowerBuf

  • Power

Public Functions

RefSerialMenu(modm::ViewStack<DummyAllocator<modm::IAbstractView>> *stack, Drivers *drivers)
void draw() override
void shortButtonPress(modm::MenuButtons::Button button) override
void update() override
bool hasChanged() override

Public Static Functions

static inline const char *getMenuName()

Public Static Attributes

static uint32_t DISPLAY_DRAW_PERIOD = 500

Time between calls to draw, which will redraw the referee serial menu.

static int REF_SERIAL_INFO_LINES = 7
static int DISPLAY_MAX_ENTRIES = 8