|
|
|
|
|
|
|
|
#include <Preferences.h>
|
|
|
#include <Preferences.h>
|
|
|
#include <RotaryEncoder.h>
|
|
|
#include <RotaryEncoder.h>
|
|
|
#include "Display.h"
|
|
|
#include "Display.h"
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
|
const static char ROUTER_NAMESPACE[] = "routerelv_stp";
|
|
|
const static char ROUTER_NAMESPACE[] = "routerelv_stp";
|
|
|
const static char SPEED[] = "speed";
|
|
|
const static char SPEED[] = "speed";
|
|
|
|
|
|
|
|
|
const static char LVLHEIGHTDIVE[] = "lvlHeightDive";
|
|
|
const static char LVLHEIGHTDIVE[] = "lvlHeightDive";
|
|
|
const static char TOOLCHGONPWRON[] = "toolChgOnPwrOn";
|
|
|
const static char TOOLCHGONPWRON[] = "toolChgOnPwrOn";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const static String ConfigStep[9] = { "Geschw.", "Beschl.", "Schritte/U", "Steigung", "Höhe WLS", "SLOW", "FAST", "Ink. Eint.", "WzW P-ON" };
|
|
|
const static String ConfigStep[9] = { "Geschw.", "Beschl.", "Schritte/U", "Steigung", "Höhe WLS", "SLOW", "FAST", "Ink. Eint.", "WzW P-ON" };
|
|
|
|
|
|
|
|
|
|
|
|
const static int StepsPerRevOptsSize = 5;
|
|
|
|
|
|
const static uint16_t StepsPerRevolutionOptions[StepsPerRevOptsSize] = { 200, 400, 800, 1600, 3200 };
|
|
|
|
|
|
|
|
|
class RouterSetup {
|
|
|
class RouterSetup {
|
|
|
private:
|
|
|
private:
|
|
|
|
|
|
|
|
|
byte configStepIndex;
|
|
|
byte configStepIndex;
|
|
|
String getCfgOptForStepIndex(byte configStepIndex);
|
|
|
String getCfgOptForStepIndex(byte configStepIndex);
|
|
|
String getCfgOptUnitForStepIndex(byte configStepIndex);
|
|
|
String getCfgOptUnitForStepIndex(byte configStepIndex);
|
|
|
|
|
|
int getIndexOfStepsPerRevValue(uint16_t value);
|
|
|
|
|
|
|
|
|
public:
|
|
|
public:
|
|
|
const static int eeprom_start_adress = 0;
|
|
|
const static int eeprom_start_adress = 0;
|