creating new branch for dm

The branch includes test file (test.py). It works fine if we use the test file (with given lenslet position). However, calling it from main.py still needs parameters from others. Furthermore, the dm function now requires additional parameter (paramsActuator) in order to work.
Usually you plug the actuator commands into the controller. The controller
basically acts as a filter to the commands.


On 21 June 2014 08:53, forcaeluz <notifications@github.com> wrote:

> In src/DM/mainDM.py:
>
> > +
> > +            if (j<noApertx-1)&(i<nWry-1)&((i*nWrx+j)<(nWrx*(nWry-1)-1)):
> > +                lensCentPos = lensCentPos + 1
> > +            if upperflag == 1:
> > +                posWfr[i*nWrx+j][0] = posWfr[(i-1)*nWrx+j][0]
> > +                posWfr[i*nWrx+j][1] = posWfr[(i-1)*nWrx+j][1] + dwf
> > +#        print ("limit:",(i+1)*nWrx-1)
> > +        if ((i*nWrx+j)==((i+1)*nWrx-1))&((i*nWrx+j)<(nWrx*(nWry-1)-1)):
> > +            lensCentPos = lensCentPos + 1
> > +        if ((i*nWrx+j)>=(nWrx*(nWry-1)-1)):
> > +            upperflag = 1;
> > +
> > +    return posWfr
> > +
> > +
> > +def dm(actCommand, paramsSens, paramsAct):
>
> Question here is: How do I "plug" a PID controller between calculating the
> desired mirror positions, and the actual command to the mirror?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/faitdivers/pyao/pull/81/files#r14048605>.
>