SubZero Common
Common library components for an FRC CommandRobot
Loading...
Searching...
No Matches
LinearSingleAxisSubsystem.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <string>
4
5
#include "
subzero/singleaxis/BaseSingleAxisSubsystem.h
"
6
7
namespace
subzero
{
8
14
template
<
typename
TController>
15
class
LinearSingleAxisSubsystem
16
:
public
BaseSingleAxisSubsystem
<TController, units::meter> {
17
public
:
18
LinearSingleAxisSubsystem
(
19
std::string name, TController &controller,
20
ISingleAxisSubsystem<units::meter>::SingleAxisConfig
config,
21
frc::MechanismObject2d *node =
nullptr
)
22
:
BaseSingleAxisSubsystem
<TController, units::meter>{name, controller,
23
config, node} {}
24
25
void
Periodic
()
override
;
26
33
void
RunMotorVelocity
(units::meters_per_second_t speed,
34
bool
ignoreEncoder =
false
)
override
;
35
};
36
}
// namespace subzero
BaseSingleAxisSubsystem.h
subzero::BaseSingleAxisSubsystem< TController, units::meter >::BaseSingleAxisSubsystem
BaseSingleAxisSubsystem(std::string name, TController &controller, ISingleAxisSubsystem< units::meter >::SingleAxisConfig config, frc::MechanismObject2d *mechanismNode=nullptr)
subzero::LinearSingleAxisSubsystem::LinearSingleAxisSubsystem
LinearSingleAxisSubsystem(std::string name, TController &controller, ISingleAxisSubsystem< units::meter >::SingleAxisConfig config, frc::MechanismObject2d *node=nullptr)
Definition
LinearSingleAxisSubsystem.h:18
subzero::LinearSingleAxisSubsystem::RunMotorVelocity
void RunMotorVelocity(units::meters_per_second_t speed, bool ignoreEncoder=false) override
Not allowed.
subzero::LinearSingleAxisSubsystem::Periodic
void Periodic() override
subzero
Definition
AutoFactory.h:20
subzero::ISingleAxisSubsystem::SingleAxisConfig
The configuration for single-axis mechanisms.
Definition
ISingleAxisSubsystem.h:50
include
subzero
singleaxis
LinearSingleAxisSubsystem.h
Generated by
1.13.2