22 : m_lastMove(0, 0, 0, 1, 1)
44 if (targetAngle <
m_ll)
46 else if (targetAngle >
m_ul)
49 double vm = fabs(vmax);
50 double am = fabs(amax);
67 double targetAngle = x;
75 double vm = fabs(vel);
79 double a = fabs(vel - v) /
T0;
91 double targetAngle = pos;
94 if (targetAngle <
m_ll)
96 else if (targetAngle >
m_ul)
105 double a = fabs(vm - v) /
T0;
129 if (targetAngle <
m_ll)
131 else if (targetAngle >
m_ul)
134 double vm = fabs(vmax);
135 double am = fabs(amax);
virtual void stop()
Stops the motor immediately.
virtual RampCommand getRampMove(double targetAngle, double v, double a)
Get a representation of the rampMove that the motor WOULD execute if told so at the time of function ...
virtual void moveVel(double vel)
Moves the motor with the given velocity.
simulatedMotor(double lowLimit, double upLimit, double maxAcc, double maxVel)
virtual void movePos(double pos)
Moves the motor with the given velocity.
virtual void moveRamp(double targetAngle, double vmax, double amax)
any messages useful for debug are sent to this stream:
virtual double pos()
returns the planned position at time of function call (desired position)
virtual double vel()
returns the planned velocity at time of function call (desired velocitys)
virtual void start()
sets the starttime for the movement to the current time