SubZero Common
Common library components for an FRC CommandRobot
Loading...
Searching...
No Matches
subzero::SimPidMotorController Class Reference

#include <SimPidMotorController.h>

+ Inheritance diagram for subzero::SimPidMotorController:
+ Collaboration diagram for subzero::SimPidMotorController:

Public Member Functions

 SimPidMotorController (std::string name, PidSettings pidSettings, units::revolutions_per_minute_t maxRpm)
 
void Set (double percentage) override
 
void Set (units::volt_t volts) override
 
void SetPidTolerance (double tolerance) override
 
void Update () override
 
void RunWithVelocity (units::revolutions_per_minute_t rpm) override
 
void RunWithVelocity (double percentage) override
 
void RunToPosition (double position) override
 
void ResetEncoder () override
 
double GetEncoderPosition () override
 
std::optional< double > GetAbsoluteEncoderPosition () override
 
void SetEncoderConversionFactor (double factor) override
 
void SetAbsoluteEncoderConversionFactor (double factor) override
 
void Stop () override
 
const PidSettingsGetPidSettings () override
 
void UpdatePidSettings (PidSettings settings) override
 
- Public Member Functions inherited from subzero::IPidMotorController
 IPidMotorController (std::string name)
 

Additional Inherited Members

- Public Attributes inherited from subzero::IPidMotorController
const std::string m_name
 

Detailed Description

Definition at line 11 of file SimPidMotorController.h.

Constructor & Destructor Documentation

◆ SimPidMotorController()

subzero::SimPidMotorController::SimPidMotorController ( std::string name,
PidSettings pidSettings,
units::revolutions_per_minute_t maxRpm )
explicit

Member Function Documentation

◆ GetAbsoluteEncoderPosition()

std::optional< double > subzero::SimPidMotorController::GetAbsoluteEncoderPosition ( void )
inlineoverridevirtual

Implements subzero::IPidMotorController.

Definition at line 44 of file SimPidMotorController.h.

◆ GetEncoderPosition()

double subzero::SimPidMotorController::GetEncoderPosition ( void )
inlineoverridevirtual

Implements subzero::IPidMotorController.

Definition at line 40 of file SimPidMotorController.h.

◆ GetPidSettings()

const PidSettings & subzero::SimPidMotorController::GetPidSettings ( void )
inlineoverridevirtual

Implements subzero::IPidMotorController.

Definition at line 56 of file SimPidMotorController.h.

◆ ResetEncoder()

void subzero::SimPidMotorController::ResetEncoder ( void )
inlineoverridevirtual

Implements subzero::IPidMotorController.

Definition at line 38 of file SimPidMotorController.h.

◆ RunToPosition()

void subzero::SimPidMotorController::RunToPosition ( double position)
overridevirtual

◆ RunWithVelocity() [1/2]

void subzero::SimPidMotorController::RunWithVelocity ( double percentage)
inlineoverridevirtual

Implements subzero::IPidMotorController.

Definition at line 34 of file SimPidMotorController.h.

◆ RunWithVelocity() [2/2]

void subzero::SimPidMotorController::RunWithVelocity ( units::revolutions_per_minute_t rpm)
inlineoverridevirtual

Implements subzero::IPidMotorController.

Definition at line 30 of file SimPidMotorController.h.

◆ Set() [1/2]

void subzero::SimPidMotorController::Set ( double percentage)
inlineoverridevirtual

Implements subzero::IPidMotorController.

Definition at line 16 of file SimPidMotorController.h.

◆ Set() [2/2]

void subzero::SimPidMotorController::Set ( units::volt_t volts)
inlineoverridevirtual

Implements subzero::IPidMotorController.

Definition at line 20 of file SimPidMotorController.h.

◆ SetAbsoluteEncoderConversionFactor()

void subzero::SimPidMotorController::SetAbsoluteEncoderConversionFactor ( double factor)
inlineoverridevirtual

Implements subzero::IPidMotorController.

Definition at line 52 of file SimPidMotorController.h.

◆ SetEncoderConversionFactor()

void subzero::SimPidMotorController::SetEncoderConversionFactor ( double factor)
inlineoverridevirtual

Implements subzero::IPidMotorController.

Definition at line 48 of file SimPidMotorController.h.

◆ SetPidTolerance()

void subzero::SimPidMotorController::SetPidTolerance ( double tolerance)
inlineoverridevirtual

Implements subzero::IPidMotorController.

Definition at line 24 of file SimPidMotorController.h.

◆ Stop()

void subzero::SimPidMotorController::Stop ( )
overridevirtual

◆ Update()

void subzero::SimPidMotorController::Update ( )
overridevirtual

◆ UpdatePidSettings()

void subzero::SimPidMotorController::UpdatePidSettings ( PidSettings settings)
inlineoverridevirtual

Implements subzero::IPidMotorController.

Definition at line 58 of file SimPidMotorController.h.


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