Homepage Demos Overview Downloads Tutorials Reference
Credits
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members | Related Pages | Search

OutputCmd Class Reference

#include <OutputCmd.h>

List of all members.


Detailed Description

This object holds all the information needed to control a single output.

Definition at line 6 of file OutputCmd.h.

Public Member Functions

 OutputCmd ()
 Constructor.

 OutputCmd (float v)
 Constructor.

 OutputCmd (float v, float w)
 Constructor.

 OutputCmd (const OutputCmd &a, const OutputCmd &b, float w)
 Constructor, see set(a,b,w).

void set (float v, float w=1)
 sets the value to v and weight to w

void set (const OutputCmd &a, const OutputCmd &b, float w)
 sets the value to a weighted average of a and b (higher w, more a)

void unset ()
 sets value and weight to 0 (same as assigning ::unusedJoint)

bool operator== (const OutputCmd &c) const
 tests for equality of weight and value

bool operator!= (const OutputCmd &c) const
 tests for inequality of weight and value


Public Attributes

float value
 value of the output

float weight
 weight to be used in averaging, 0 to "fall through"


Constructor & Destructor Documentation

OutputCmd::OutputCmd  )  [inline]
 

Constructor.

Definition at line 9 of file OutputCmd.h.

References value, and weight.

OutputCmd::OutputCmd float  v  )  [inline]
 

Constructor.

Definition at line 10 of file OutputCmd.h.

References value, and weight.

OutputCmd::OutputCmd float  v,
float  w
[inline]
 

Constructor.

Definition at line 11 of file OutputCmd.h.

References value, and weight.

OutputCmd::OutputCmd const OutputCmd a,
const OutputCmd b,
float  w
[inline]
 

Constructor, see set(a,b,w).

Definition at line 12 of file OutputCmd.h.

References value, and weight.


Member Function Documentation

bool OutputCmd::operator!= const OutputCmd c  )  const [inline]
 

tests for inequality of weight and value

Definition at line 18 of file OutputCmd.h.

References value, and weight.

bool OutputCmd::operator== const OutputCmd c  )  const [inline]
 

tests for equality of weight and value

Definition at line 17 of file OutputCmd.h.

References value, and weight.

void OutputCmd::set const OutputCmd a,
const OutputCmd b,
float  w
[inline]
 

sets the value to a weighted average of a and b (higher w, more a)

Definition at line 15 of file OutputCmd.h.

References value, and weight.

void OutputCmd::set float  v,
float  w = 1
[inline]
 

sets the value to v and weight to w

Definition at line 14 of file OutputCmd.h.

References value, and weight.

void OutputCmd::unset  )  [inline]
 

sets value and weight to 0 (same as assigning ::unusedJoint)

Definition at line 16 of file OutputCmd.h.

References value, and weight.


Member Data Documentation

float OutputCmd::value
 

value of the output

Definition at line 20 of file OutputCmd.h.

float OutputCmd::weight
 

weight to be used in averaging, 0 to "fall through"

Definition at line 21 of file OutputCmd.h.


The documentation for this class was generated from the following file:
Tekkotsu v1.4
Generated Sat Jul 19 00:09:05 2003 by Doxygen 1.3.2