Nebula
|
#include <angularpfeedbackloop.h>
A proportional feedback loop with correct angular interpolation.
Public Member Functions | |
AngularPFeedbackLoop () | |
constructor | |
void | Reset (Timing::Time time, float stepSize, float gain, float curState) |
reset the time | |
void | SetGain (float g) |
set the gain | |
float | GetGain () const |
get the gain | |
void | SetGoal (float c) |
set the goal | |
float | GetGoal () const |
get the goal | |
void | SetState (float s) |
set the current state directly | |
float | GetState () const |
get the current state the system is in | |
void | Update (Timing::Time time) |
update the object, return new state | |
Timing::Time | GetTime () const |
get currrent time | |
Private Attributes | |
Timing::Time | time |
float | stepSize |
float | gain |
float | goal |
float | state |
|
inline |
constructor
|
inline |
get the gain
|
inline |
get the goal
|
inline |
get the current state the system is in
|
inline |
get currrent time
|
inline |
reset the time
|
inline |
set the gain
|
inline |
set the goal
|
inline |
set the current state directly
|
inline |
update the object, return new state
|
private |
|
private |
|
private |
|
private |
|
private |