Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

OutputPID Class Reference

#include <OutputPID.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 OutputPID.h.

Public Member Functions

 OutputPID ()
 Constructor.
 OutputPID (const float p[3])
 Constructor, allows non-explicit conversion.
 OutputPID (const float p[3], float w)
 Constructor.
 OutputPID (const float p, const float i, const float d, float w)
 Constructor.
 OutputPID (const OutputPID &a, const OutputPID &b, float w)
 Constructor, see set(a,b,w).
void set (const float p[3], float w=1)
 sets the value to v and weight to w
void set (const float p, const float i, const float d, float w=1)
 sets the value to v and weight to w
void set (const OutputPID &a, const OutputPID &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

Public Attributes

float pid [3]
 pid value of the output
float weight
 weight to be used in averaging, 0 to "fall through"

Protected Member Functions

void set_pid (const float p[3])
 handy utility function, sets pid[0:2] to p[0:2]
void set_pid (const float p, const float i, const float d)
 handy utility function, sets pid[0:2] to [p,i,d]


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

Tekkotsu v3.0
Generated Fri May 11 20:08:30 2007 by Doxygen 1.4.7