make menu functional

This commit is contained in:
Ronald Schaten 2022-02-05 01:01:03 +01:00
parent 78e61464a5
commit 332c5937a6

View File

@ -81,18 +81,37 @@ result enter_jog() {
return proceed; return proceed;
} }
int tSettle = 100;
int tFocus = 500;
int tShutter = 500;
bool bReturn = true;
bool bLcdBlackout = true;
TOGGLE(bReturn, setReturn, "Return: ", doNothing, noEvent, wrapStyle
,VALUE("On", true, doNothing, noEvent)
,VALUE("Off", false, doNothing, noEvent)
);
TOGGLE(bLcdBlackout, setLcdBlackout, "LCD Blackout: ", doNothing, noEvent, wrapStyle
,VALUE("On", true, doNothing, noEvent)
,VALUE("Off", false, doNothing, noEvent)
);
MENU(configuration, "Configuration", doNothing, anyEvent, wrapStyle MENU(configuration, "Configuration", doNothing, anyEvent, wrapStyle
,OP("tSettle", doNothing, noEvent) ,FIELD(tSettle, "tSettle", "ms", 0, 2000, 100, 10, doNothing, noEvent, wrapStyle)
,OP("tFocus", doNothing, noEvent) ,FIELD(tFocus, "tFocus", "ms", 0, 2000, 500, 10, doNothing, noEvent, wrapStyle)
,OP("tShutter", doNothing, noEvent) ,FIELD(tShutter, "tShutter", "ms", 0, 2000, 500, 10, doNothing, noEvent, wrapStyle)
,OP("Return", doNothing, noEvent) ,SUBMENU(setReturn)
,OP("LcdBlackout", doNothing, noEvent) ,SUBMENU(setLcdBlackout)
,EXIT("<Back") ,EXIT("<Back")
); );
int nSteps = 10;
float distance = 0.5;
MENU(scene, "Scene", doNothing, anyEvent, wrapStyle MENU(scene, "Scene", doNothing, anyEvent, wrapStyle
,OP("nSteps", doNothing, noEvent) ,FIELD(nSteps, "nSteps", "steps", 0, 100, 10, 1, doNothing, noEvent, wrapStyle)
,OP("Distance", doNothing, noEvent) ,FIELD(distance, "distance", "mm", 0.1, 10, 1, 0.1, doNothing, noEvent, wrapStyle)
,EXIT("<Back") ,EXIT("<Back")
); );