Class ImuMenu
Defined in File imu_menu.hpp
Inheritance Relationships
Base Type
public modm::AbstractMenu< display::DummyAllocator< modm::IAbstractView > >
Class Documentation
-
class ImuMenu : public modm::AbstractMenu<display::DummyAllocator<modm::IAbstractView>>
Menu that displays IMU readings from some particular
ImuInterface
.Public Functions
-
ImuMenu(modm::ViewStack<display::DummyAllocator<modm::IAbstractView>> *stack, ImuInterface *imu)
- Parameters:
stack – [in] The
ViewStack
that this menu will is being added to.imu – [in] The ImuInterface whose IMU information will be displayed.
-
void draw() override
-
void update() override
-
bool hasChanged() override
-
void shortButtonPress(modm::MenuButtons::Button button) override
-
const char *getMenuName()
- Returns:
The name of the menu, which happens to be the name of the IMU associated with this menu.
Public Static Attributes
-
static uint32_t IMU_UPDATE_TIME = 500
Time in milliseconds between calls to update the display.
-
ImuMenu(modm::ViewStack<display::DummyAllocator<modm::IAbstractView>> *stack, ImuInterface *imu)