refactor, added akku menu, finished autopilot menu
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
/**
|
||||
* @file menuGPS.h
|
||||
* @author Alexander Klein (alex@kleiax.de)
|
||||
* @brief
|
||||
* @version 0.1
|
||||
* @date 2022-01-29
|
||||
*
|
||||
* @copyright Copyright (c) 2022
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef MENU_GPS_H
|
||||
#define MENU_GPS_H
|
||||
|
||||
#include <TinyGPS++.h>
|
||||
|
||||
#include "menuControl.h"
|
||||
|
||||
class MenuGPS : public MenuControl {
|
||||
public:
|
||||
MenuGPS(TinyGPSPlus* gps);
|
||||
|
||||
void down();
|
||||
void up();
|
||||
void right();
|
||||
void left();
|
||||
void no();
|
||||
void yes();
|
||||
|
||||
void printMenu();
|
||||
void update();
|
||||
|
||||
private:
|
||||
const uint8_t countPages = 7;
|
||||
uint8_t currentPage = 0;
|
||||
void printPage(const uint8_t page) const;
|
||||
|
||||
TinyGPSPlus* gps;
|
||||
|
||||
const uint16_t delay = 5000;
|
||||
uint32_t last_millis = 0;
|
||||
};
|
||||
|
||||
#endif // MENU_GPS_H
|
||||
Reference in New Issue
Block a user