#include <palActuators.h>
Public Member Functions | |
void | Init (palRevoluteLink *revolute_link, Float torque_constant, Float back_EMF_constant, Float armature_resistance) |
void | SetVoltage (Float voltage) |
void | Apply () |
Where, is the torque. is the motor torque constant (Nm/A) is the applied armature voltage (V) is the motor back emf constant (Vs/rad) is the angular velocity of the motor (rad/s) is the armature resistance. (ohms)
void palDCMotor::Apply | ( | ) | [inline, virtual] |
Ensures the actuator operates for the current time step
Implements palActuator.
void palDCMotor::Init | ( | palRevoluteLink * | revolute_link, | |
Float | torque_constant, | |||
Float | back_EMF_constant, | |||
Float | armature_resistance | |||
) | [inline] |
Initializes the motor. None of the parameters should be set to zero.
revolute_link | The revolute link the motor is attached to. | |
torque_constant | , the motor torque constant (Nm/A) | |
back_EMF_constant | , the motor back emf constant (Vs/rad) | |
armature_resistance | , the armature resistance. (ohms) |
void palDCMotor::SetVoltage | ( | Float | voltage | ) | [inline] |
Set the input voltage
voltage | Applied armature voltage |