Klamp't  0.8.1
Public Types | Public Member Functions | Public Attributes | List of all members
ActuatorCommand Struct Reference

A basic motor type. Handles PID, torque, and locked velocity modes. More...

#include <Command.h>

Public Types

enum  { OFF, TORQUE, PID, LOCKED_VELOCITY }
 

Public Member Functions

void SetOff ()
 
void SetPID (Real qdes, Real dqdes=Zero, Real iterm=Zero)
 
void SetTorque (Real t)
 
void SetLockedVelocity (Real vel, Real torqueMax)
 
Real GetPIDTorque (Real q, Real dq) const
 
void IntegratePID (Real q, Real dt)
 

Public Attributes

int mode
 
bool measureAngleAbsolute
 
Real qmin
 
Real qmax
 
Real kP
 
Real kI
 
Real kD
 
Real qdes
 
Real dqdes
 
Real iterm
 
Real torque
 
Real desiredVelocity
 

Detailed Description

A basic motor type. Handles PID, torque, and locked velocity modes.


The documentation for this struct was generated from the following file: