Nebula
Loading...
Searching...
No Matches
PQuatFeedbackLoop Class Reference

Public Member Functions

Quaternion Update (double dt)
 Perform one step/loop/update of the PID controller.
Quaternion AdvanceToTime (double curTime)
 Advance to curTime, and perform N steps based on stepSize.

Public Attributes

double time = 0.0
 The time at which the state is currently in.
double stepSize = 0.001
float gain = -1.0f
Quaternion goal
Quaternion state
float lastError = 0.0f

Member Function Documentation

◆ AdvanceToTime()

Quaternion PQuatFeedbackLoop.AdvanceToTime ( double curTime)
inline

Advance to curTime, and perform N steps based on stepSize.

◆ Update()

Quaternion PQuatFeedbackLoop.Update ( double dt)
inline

Perform one step/loop/update of the PID controller.

Member Data Documentation

◆ gain

float PQuatFeedbackLoop.gain = -1.0f

◆ goal

Quaternion PQuatFeedbackLoop.goal

◆ lastError

float PQuatFeedbackLoop.lastError = 0.0f

◆ state

Quaternion PQuatFeedbackLoop.state

◆ stepSize

double PQuatFeedbackLoop.stepSize = 0.001

◆ time

double PQuatFeedbackLoop.time = 0.0

The time at which the state is currently in.

You generally don't have to change this. If you need to feed delta time into the system, instead change the stepSize before calling Update.


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