major code restructure and cleanup

This commit is contained in:
2019-01-23 12:08:47 +00:00
parent 66e2d038ba
commit dab7fb940c
12 changed files with 454 additions and 875 deletions

View File

@@ -263,17 +263,6 @@ class MXTuning(Tuning):
prog+=''' iqCmd=DesPos*{V}-{y};
if (iqCmd>maxDac)
{{
iqCmd=maxDac;
}}
else
{{
if (iqCmd<-maxDac)
{{
iqCmd=-maxDac;
}}
}}
//return iqCmd;
pshm->P[200{motid}]=iqCmd; //lowpass of Position error
return pshm->ServoCtrl(Mptr);