PositionThroughVelocityControllerWithAccelerationBounds Struct Reference

#include <RobotAPI/components/units/RobotUnit/BasicControllers.h>

+ Inheritance diagram for PositionThroughVelocityControllerWithAccelerationBounds:

Public Member Functions

float calculateProportionalGain () const
 
float estimateTime () const
 
bool getCurrentlyPIDActive () const
 
 PositionThroughVelocityControllerWithAccelerationBounds ()
 
float run () const
 
bool validParameters () const
 

Public Attributes

float acceleration
 
float accuracy = 0.001
 
float currentPosition
 
float currentV
 
float deceleration
 
float dt
 
float maxDt
 
float maxV
 
float pControlPosErrorLimit = 0.01
 
float pControlVelLimit
 
std::shared_ptr< PIDController > pid
 
float targetPosition
 

Constructor & Destructor Documentation

◆ PositionThroughVelocityControllerWithAccelerationBounds()

Member Function Documentation

◆ calculateProportionalGain()

float calculateProportionalGain ( ) const

◆ estimateTime()

float estimateTime ( ) const

◆ getCurrentlyPIDActive()

bool getCurrentlyPIDActive ( ) const

◆ run()

float run ( ) const

◆ validParameters()

bool validParameters ( ) const

Member Data Documentation

◆ acceleration

float acceleration

◆ accuracy

float accuracy = 0.001

◆ currentPosition

float currentPosition

◆ currentV

float currentV

◆ deceleration

float deceleration

◆ dt

float dt

◆ maxDt

float maxDt

◆ maxV

float maxV

◆ pControlPosErrorLimit

float pControlPosErrorLimit = 0.01

◆ pControlVelLimit

float pControlVelLimit
Initial value:
=
0.002

◆ pid

std::shared_ptr<PIDController> pid

◆ targetPosition

float targetPosition

The documentation for this struct was generated from the following files: