|
| LinearSingleAxisSubsystem (std::string name, TController &controller, ISingleAxisSubsystem< units::meter >::SingleAxisConfig config, frc::MechanismObject2d *node=nullptr) |
|
void | Periodic () override |
|
void | RunMotorVelocity (units::meters_per_second_t speed, bool ignoreEncoder=false) override |
| Not allowed.
|
|
| BaseSingleAxisSubsystem (std::string name, TController &controller, ISingleAxisSubsystem< units::meter >::SingleAxisConfig config, frc::MechanismObject2d *mechanismNode=nullptr) |
|
void | Periodic () override |
| Runs the absolute positioning task and updates relevant info on SmartDashboard.
|
|
virtual void | RunMotorVelocity (Velocity_t speed, bool ignoreEncoder=false)=0 |
| Run at the given velocity; disables any in-progress absolute movements.
|
|
void | UseState (PidState setpoint) override |
|
void | RunMotorSpeedDefault (bool ignoreEncoder=false) override |
| Run at the default motor speed.
|
|
void | RunMotorPercentage (double percentSpeed, bool ignoreEncoder=false) override |
| Run at the given velocity percentage; disables any in-progress absolute movements.
|
|
Distance_t | GetCurrentPosition () override |
| Get the current position in terms of converted distance.
|
|
void | Stop () override |
| Stop the axis.
|
|
void | ResetEncoder () override |
| Reset encoder back to 0 ticks.
|
|
bool | AtHome () override |
| Check if axis is at the mimimum extent of motion.
|
|
bool | AtMax () override |
| Check if axis is at the maximum extent of motion.
|
|
bool | AtLimitSwitchMin () override |
| Only check the limit switch for mimimum extent.
|
|
bool | AtLimitSwitchMax () override |
| Only check the limit switch for maximum extent.
|
|
frc2::CommandPtr | MoveToPositionAbsolute (Distance_t position) override |
| Start moving to the absolute position.
|
|
frc2::CommandPtr | MoveToPositionRelative (Distance_t position) override |
| Start moving to the position given the current distance and relative position.
|
|
frc2::CommandPtr | Home () override |
| Start the homing sequence.
|
|
frc2::CommandPtr | ResetRelativeEncoder () |
|
frc::MechanismLigament2d * | GetLigament () |
|
bool | IsEnabled () override |
| Check if absolute positioning is active.
|
|
void | DisablePid () override |
| Stop and disable any in-progress absolute movements.
|
|
void | EnablePid () override |
| Enable absolute movements.
|
|
void | OnInit () |
| This must be called once upon robot startup.
|
|
template<typename TController>
class subzero::LinearSingleAxisSubsystem< TController >
A single axis representing a linear path of motion in meters.
- Template Parameters
-
Definition at line 15 of file LinearSingleAxisSubsystem.h.