32 const std::array<double, 1>& measurementStdDevs = {0.0});
45 units::kilogram_square_meter_t moi,
46 const std::array<double, 1>& measurementStdDevs = {0.0});
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.
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
Definition: BatterySim.h:14