6#include <thrifty/core/MotorControlRequest.h>
7#include <thrifty/nova/Nova.h>
11#include <wpi/math/trajectory/TrapezoidProfile.hpp>
12#include <wpi/units/time.hpp>
38 wpi::units::second_t period);
82 void ApplyVoltage(
double volts);
84 std::shared_ptr<SimSupplier> m_mechanism;
85 thrifty::Nova& m_nova;
86 double m_periodSeconds;
87 std::optional<thrifty::MotorControlRequest> m_request;
88 double m_dutyCycle{0.0};
90 double m_integral{0.0};
92 std::optional<double> m_lastError;
94 std::optional<wpi::math::TrapezoidProfile<wpi::units::turns>::State> m_profileState;
Definition SimSupplier.hpp:22
wpi::units::turns_per_second_squared_t GetRotorAcceleration() override
const std::optional< thrifty::MotorControlRequest > & GetControlRequest() const
void StarveInput() override
wpi::units::ampere_t GetSupplyCurrent() override
void SetRotorVelocity(wpi::units::turns_per_second_t velocity) override
NovaSimSupplier(std::shared_ptr< SimSupplier > mechanism, thrifty::Nova &nova, wpi::units::second_t period)
void SetMechanismPosition(wpi::units::turn_t angle) override
void SetMechanismStatorDutyCycle(double dutyCycle) override
wpi::units::turns_per_second_t GetRotorVelocity() override
wpi::units::volt_t GetMechanismSupplyVoltage() override
void SetControlRequest(const thrifty::MotorControlRequest &request)
void FeedUpdateSim() override
void UpdateSim() override
bool GetUpdatedSim() override
wpi::units::volt_t GetMechanismStatorVoltage() override
void FeedInput() override
double GetDutyCycle() const
bool IsInputFed() override
void SetMechanismVelocity(wpi::units::turns_per_second_t velocity) override
void SetRotorPosition(wpi::units::turn_t angle) override
wpi::units::turns_per_second_t GetMechanismVelocity() override
wpi::units::turn_t GetRotorPosition() override
wpi::units::ampere_t GetStatorCurrent() override
void SetMechanismStatorVoltage(wpi::units::volt_t volts) override
wpi::units::turns_per_second_squared_t GetMechanismAcceleration() override
wpi::units::turn_t GetMechanismPosition() override
void StarveUpdateSim() override
Definition SimSensorConfig.hpp:15