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

#include <IPidMotorController.h>

+ Inheritance diagram for subzero::IPidMotorController:
+ Collaboration diagram for subzero::IPidMotorController:

Public Member Functions

 IPidMotorController (std::string name)
 
virtual void Set (double percentage)=0
 
virtual void Set (units::volt_t volts)=0
 
virtual void SetPidTolerance (double tolerance)=0
 
virtual void Update (void)=0
 
virtual void RunWithVelocity (units::revolutions_per_minute_t rpm)=0
 
virtual void RunWithVelocity (double percentage)=0
 
virtual void RunToPosition (double position)=0
 
virtual void ResetEncoder (void)=0
 
virtual double GetEncoderPosition (void)=0
 
virtual std::optional< double > GetAbsoluteEncoderPosition (void)=0
 
virtual void SetEncoderConversionFactor (double factor)=0
 
virtual void SetAbsoluteEncoderConversionFactor (double factor)=0
 
virtual void Stop (void)=0
 
virtual const PidSettingsGetPidSettings (void)=0
 
virtual void UpdatePidSettings (PidSettings settings)=0
 

Public Attributes

const std::string m_name
 

Detailed Description

Definition at line 14 of file IPidMotorController.h.

Constructor & Destructor Documentation

◆ IPidMotorController()

subzero::IPidMotorController::IPidMotorController ( std::string name)
inlineexplicit

Definition at line 16 of file IPidMotorController.h.

Member Function Documentation

◆ GetAbsoluteEncoderPosition()

◆ GetEncoderPosition()

◆ GetPidSettings()

◆ ResetEncoder()

◆ RunToPosition()

◆ RunWithVelocity() [1/2]

◆ RunWithVelocity() [2/2]

◆ Set() [1/2]

◆ Set() [2/2]

◆ SetAbsoluteEncoderConversionFactor()

◆ SetEncoderConversionFactor()

◆ SetPidTolerance()

◆ Stop()

◆ Update()

◆ UpdatePidSettings()

Member Data Documentation

◆ m_name

const std::string subzero::IPidMotorController::m_name

Definition at line 34 of file IPidMotorController.h.


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