34 const std::array<double, 1>& measurementStdDevs = {0.0});
47 units::kilogram_square_meter_t moi,
48 const std::array<double, 1>& measurementStdDevs = {0.0});
57 void SetState(units::radians_per_second_t velocity);
Holds the constants for a DC motor.
Definition: DCMotor.h:20
A plant defined using state-space notation.
Definition: LinearSystem.h:31
Represents a simulated flywheel mechanism.
Definition: FlywheelSim.h:18
FlywheelSim(const LinearSystem< 1, 1, 1 > &plant, const DCMotor &gearbox, double gearing, const std::array< double, 1 > &measurementStdDevs={0.0})
Creates a simulated flywheel mechanism.
units::radians_per_second_t GetAngularVelocity() const
Returns the flywheel velocity.
units::ampere_t GetCurrentDraw() const override
Returns the flywheel current draw.
void SetInputVoltage(units::volt_t voltage)
Sets the input voltage for the flywheel.
void SetState(units::radians_per_second_t velocity)
Sets the flywheel's state.
FlywheelSim(const DCMotor &gearbox, double gearing, units::kilogram_square_meter_t moi, const std::array< double, 1 > &measurementStdDevs={0.0})
Creates a simulated flywheel mechanism.
This class helps simulate linear systems.
Definition: LinearSystemSim.h:31
void SetState(const Vectord< States > &state)
Sets the system state.
Definition: LinearSystemSim.h:107
Definition: XboxControllerSim.h:13