OneAxisServo Class Reference

general servo motor More...

#include <oneaxisservo.h>

Collaboration diagram for OneAxisServo:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 OneAxisServo (OneAxisJoint *joint, double _min, double _max, double power, double damp=0.2, double integration=2, double maxVel=10.0)
 min and max values are understood as travel bounds.
virtual ~OneAxisServo ()
virtual void set (double pos)
 sets the set point of the servo.
virtual double get ()
 returns the position of the slider in ranges [-1, 1] (scaled by min, max)
virtual void setMinMax (double _min, double _max)
virtual void setPower (double power)
 adjusts the power of the servo
virtual double & power ()
 returns the power of the servo
virtual double & damping ()
 returns the damping of the servo
virtual double & offsetCanceling ()
 returns the damping of the servo

Detailed Description

general servo motor


Constructor & Destructor Documentation

OneAxisServo ( OneAxisJoint joint,
double  _min,
double  _max,
double  power,
double  damp = 0.2,
double  integration = 2,
double  maxVel = 10.0 
) [inline]

min and max values are understood as travel bounds.

Min should be less than 0.

virtual ~OneAxisServo (  )  [inline, virtual]


Member Function Documentation

virtual double& damping (  )  [inline, virtual]

returns the damping of the servo

virtual double get (  )  [inline, virtual]

returns the position of the slider in ranges [-1, 1] (scaled by min, max)

virtual double& offsetCanceling (  )  [inline, virtual]

returns the damping of the servo

virtual double& power (  )  [inline, virtual]

returns the power of the servo

virtual void set ( double  pos  )  [inline, virtual]

sets the set point of the servo.

Position must be between -1 and 1. It is scaled to fit into min, max

virtual void setMinMax ( double  _min,
double  _max 
) [inline, virtual]

virtual void setPower ( double  power  )  [inline, virtual]

adjusts the power of the servo


The documentation for this class was generated from the following file:
Generated on Tue Sep 16 22:01:36 2008 for Robotsystem of the Robot Group Leipzig by  doxygen 1.4.7