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
6
7namespace subzero {
8
14template <typename TController>
16 : public BaseSingleAxisSubsystem<TController, units::meter> {
17public:
19 std::string name, TController &controller,
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
The ultimate solution for turrets, arms, and much more. This class allows for absolute,...
A single axis representing a linear path of motion in meters.
LinearSingleAxisSubsystem(std::string name, TController &controller, ISingleAxisSubsystem< units::meter >::SingleAxisConfig config, frc::MechanismObject2d *node=nullptr)
void RunMotorVelocity(units::meters_per_second_t speed, bool ignoreEncoder=false) override
Not allowed.
The configuration for single-axis mechanisms.