1#ifndef __HeadingPIDController_H
2#define __HeadingPIDController_H
44#include <fhsim/simobject/SimObject.h>
54 virtual void OdeFcn(
const double T,
const double*
const X,
double*
const XDot)
const;
56 const double* Torque(
const double T,
const double *
const X);
57 const double* AngleDiff(
const double T,
const double *
const X);
59 #ifdef FH_VISUALIZATION
61 virtual void RenderInit(Ogre::Root*
const ogreRoot, ISimObjectCreator*
const creator){}
64 virtual void RenderUpdate(
const double T,
const double*
const X){}
76 double HeadingDifference(
double from,
double to)
const;
Definition HeadingPIDController.h:51
ISignalPort * m_InCurrentYawRate
Current position.
Definition HeadingPIDController.h:71
ISignalPort * m_InDesiredYawRate
Desired position.
Definition HeadingPIDController.h:73
ISignalPort * m_InCurrentHeading
Current position.
Definition HeadingPIDController.h:70
ISignalPort * m_InDesiredHeading
Desired position.
Definition HeadingPIDController.h:72
int m_IErrorIntegral
The relative index of the StatePositionErrorSum state in the state array.
Definition HeadingPIDController.h:74
HeadingPIDController(const std::string &simObjectName, ISimObjectCreator *const creator)
reads parameters, registers states, input/output ports and shared resources
virtual void OdeFcn(const double T, const double *const X, double *const XDot) const
returns object derivatives as a function of time, states and input ports
Superclass of control algorithms for the control system.
Definition CableAttach.h:58