define positive & negative rotation of qddata

Defines

#define ROTATE_POS(in, out, t)   out.q[N]=_IQmpy(in.q[N],_IQcos(t))-_IQmpy(in.d[N],_IQsin(t));out.d[N]=_IQmpy(in.q[N],_IQsin(t))+_IQmpy(in.d[N],_IQcos(t));
#define ROTATE_NEG(in, out, t)   out.q[N]=_IQmpy(in.q[N],_IQcos(t))+_IQmpy(in.d[N],_IQsin(t));out.d[N]=-_IQmpy(in.q[N],_IQsin(t))+_IQmpy(in.d[N],_IQcos(t));

Define Documentation

#define ROTATE_NEG ( in,
out,
 )     out.q[N]=_IQmpy(in.q[N],_IQcos(t))+_IQmpy(in.d[N],_IQsin(t));out.d[N]=-_IQmpy(in.q[N],_IQsin(t))+_IQmpy(in.d[N],_IQcos(t));

define negative rotation of qddata (rotate to stationary coordinates out=in*exp(-j*t))

in data in the original reference frame.

out data in the rotated reference frame.

t angle of rotation.

Definition at line 64 of file FilterAndRotations.h.

#define ROTATE_POS ( in,
out,
 )     out.q[N]=_IQmpy(in.q[N],_IQcos(t))-_IQmpy(in.d[N],_IQsin(t));out.d[N]=_IQmpy(in.q[N],_IQsin(t))+_IQmpy(in.d[N],_IQcos(t));

define positive rotation of qddata (rotate to synchronous coordinates out=in*exp(j*t))

in data in the original reference frame.

out data in the rotated reference frame.

t angle of rotation.

Definition at line 52 of file FilterAndRotations.h.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines
Generated on Mon Apr 23 12:59:21 2012 for TIMotorLIB by  doxygen 1.6.3