EdmundOpt High Speed filter wheel is working!!!

This commit is contained in:
eddyem
2016-05-14 16:54:12 +03:00
parent 1360054a53
commit 130ea672c3
9 changed files with 319 additions and 162 deletions

View File

@@ -39,6 +39,7 @@ glob_pars G;
int listNms = 0 // list names
,gohome = 0 // first go home
,reName = 0 // rename wheels/positions
,showpos = 0 // show current position (if none args)
;
@@ -47,6 +48,7 @@ int listNms = 0 // list names
glob_pars const Gdefault = {
NULL // wheelID
,NULL // wheelName
,NULL // serial
,0 // filterPos ( 0 - get current position)
,NULL // filterName
,NULL // filterId
@@ -63,6 +65,8 @@ myoption cmdlnopts[] = {
{"wheel-id",NEED_ARG, NULL, 'W', arg_string, APTR(&G.wheelID), N_("letter wheel identificator")},
/// "ÎÁÚ×ÁÎÉÅ ËÏÌÅÓÁ"
{"wheel-name",NEED_ARG, NULL, 'N', arg_string, APTR(&G.wheelName), N_("wheel name")},
/// "ÓÅÒÉÊÎÙÊ ÎÏÍÅÒ ÔÕÒÅÌÉ (Ó ÎÁÞÁÌØÎÙÍÉ ÎÕÌÑÍÉ)"
{"serial", NEED_ARG, NULL, 's', arg_string, APTR(&G.serial), N_("turret serial (with leading zeros)")},
/// "ÎÏÍÅÒ ÐÏÚÉÃÉÉ ÆÉÌØÔÒÁ"
{"f-position",NEED_ARG, NULL, 'p', arg_int, APTR(&G.filterPos), N_("filter position number")},
/// "ÎÁÚ×ÁÎÉÅ ÆÉÌØÔÒÁ"
@@ -125,10 +129,7 @@ glob_pars *parse_args(int argc, char **argv){
}
}
if(argc == oldargc){ // no parameters given or given only wrong parameters
listNms = LIST_PRES;
/// "îÅ ÐÅÒÅÄÁÎÏ ÎÉËÁËÉÈ ÁÒÇÕÍÅÎÔÏ×, ×Ù×ÏÖÕ ÓÐÉÓÏË ÐÏÄËÌÀÞÅÎÎÙÈ ÕÓÔÒÏÊÓÔ×!"
WARNX(_("No arguments given, list all devices connected!"));
return &G;
showpos = 1;
}
return &G;
}