SubZero Common
Common library components for an FRC CommandRobot
Loading...
Searching...
No Matches
RotationalSingleAxisSubsystem.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::degree> {
17public:
19 std::string name, TController &controller,
21 units::meter_t armatureLength, frc::MechanismObject2d *node = nullptr)
22 : BaseSingleAxisSubsystem<TController, units::degree>{name, controller,
23 config, node},
24 m_armatureLength{armatureLength} {}
25
26 void Periodic() override;
27
28 void RunMotorVelocity(units::degrees_per_second_t speed,
29 bool ignoreEncoder = false) override;
30
31protected:
32 units::meter_t m_armatureLength;
33};
34} // namespace subzero
The ultimate solution for turrets, arms, and much more. This class allows for absolute,...
A single axis representing a circular path of motion in degrees.
RotationalSingleAxisSubsystem(std::string name, TController &controller, ISingleAxisSubsystem< units::degree >::SingleAxisConfig config, units::meter_t armatureLength, frc::MechanismObject2d *node=nullptr)
void RunMotorVelocity(units::degrees_per_second_t speed, bool ignoreEncoder=false) override
The configuration for single-axis mechanisms.