Brick
Loading...
Searching...
No Matches
LinearMotorFF Class Reference
Inheritance diagram for LinearMotorFF:

Public Member Functions

void reset () override
 Resets the internal state of the control system.
 LinearMotorFF (const units::Voltage &kS, const units::LinearVelocityFeedforward &kV, const units::LinearAccelerationFeedforward &kA)
 Linear Motor FeedForward object contructor.
units::Voltage calculate (const FFMotorState &reference) override
 updates the linear motor feedforward output
Public Member Functions inherited from FeedForward< FFMotorState, units::Voltage >
units::Voltage get_output ()
 Gets the last saved output value.
FFMotorState get_reference ()
 Gets the currently stored reference state.

Public Attributes

units::Voltage kS_
units::LinearVelocityFeedforward kV_
units::LinearAccelerationFeedforward kA_
Public Attributes inherited from FeedForward< FFMotorState, units::Voltage >
units::Voltage output_min_
units::Voltage output_max_

Additional Inherited Members

Protected Attributes inherited from FeedForward< FFMotorState, units::Voltage >
FFMotorState reference_
units::Voltage output_

Constructor & Destructor Documentation

◆ LinearMotorFF()

LinearMotorFF::LinearMotorFF ( const units::Voltage & kS,
const units::LinearVelocityFeedforward & kV,
const units::LinearAccelerationFeedforward & kA )

Linear Motor FeedForward object contructor.

Parameters
kSthe voltage needed to overcome the motors static friction
kVthe volatage needed for the motor to cruise at a constant velocity
kAthe voltage needed to induce a given acceleration to the motor

Member Function Documentation

◆ calculate()

units::Voltage LinearMotorFF::calculate ( const FFMotorState & reference)
overridevirtual

updates the linear motor feedforward output

Parameters
referencethe reference state for the motor

Implements FeedForward< FFMotorState, units::Voltage >.

◆ reset()

void LinearMotorFF::reset ( )
overridevirtual

Resets the internal state of the control system.

Implements FeedForward< FFMotorState, units::Voltage >.


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