|
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
|
|
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"
|
Static Public Attributes |
|
static OutputCmd | unused |
| | handy sometimes for returning a reference to a 0,0 cmd
|