52 public wpi::SendableHelper<SwerveModule> {
65 SwerveModule(std::unique_ptr<LinearVelocityController> velocityController,
66 std::unique_ptr<AngularPositionController> angularController,
67 const frc::Translation2d &moduleTranslation,
68 bool breakMode =
false);
76 void setState(
const units::meters_per_second_t &velocity,
77 const frc::Rotation2d &angle);
79 void smartdashboardDisplayTargetState(
const std::string &name)
const;
86 void setState(
const frc::SwerveModuleState &state);
104 units::meters_per_second_t getTargetVelocity()
const;
105 frc::Rotation2d getTargetRotation()
const;
115 void setPower(
double power,
const frc::Rotation2d &angle);
136 virtual void InitSendable(wpi::SendableBuilder &builder)
override;
139 return ((units::angle::degree_t)angularController->getPosition())();
146 std::unique_ptr<AngularPositionController> angularController;
151 std::unique_ptr<LinearVelocityController> velocityController;
157 frc::Translation2d moduleTranslation;
SwerveModule(std::unique_ptr< LinearVelocityController > velocityController, std::unique_ptr< AngularPositionController > angularController, const frc::Translation2d &moduleTranslation, bool breakMode=false)