Closed ThePhoenixFox closed 7 months ago
Requirements:
Documentation: https://docs.wpilib.org/en/stable/docs/software/kinematics-and-odometry/swerve-drive-kinematics.html https://docs.wpilib.org/en/stable/docs/software/kinematics-and-odometry/swerve-drive-odometry.html https://docs.wpilib.org/en/stable/docs/software/pathplanning/trajectory-tutorial/index.html https://docs.wpilib.org/en/stable/docs/software/pathplanning/pathweaver/index.html
API: SwerveControllerCommand(frc::Trajectory trajectory, std::function<frc::Pose2d()> pose, frc::SwerveDriveKinematics<NumModules> kinematics, frc::PIDController xController, frc::PIDController yController, frc::ProfiledPIDController<units::radians> thetaController, std::function<void(std::array<frc::SwerveModuleState, NumModules>)> output, Requirements requirements = {}) https://github.wpilib.org/allwpilib/docs/release/cpp/classfrc2_1_1_swerve_controller_command.html
SwerveControllerCommand(frc::Trajectory trajectory, std::function<frc::Pose2d()> pose, frc::SwerveDriveKinematics<NumModules> kinematics, frc::PIDController xController, frc::PIDController yController, frc::ProfiledPIDController<units::radians> thetaController, std::function<void(std::array<frc::SwerveModuleState, NumModules>)> output, Requirements requirements = {})
Example: https://github.com/wpilibsuite/allwpilib/tree/main/wpilibcExamples/src/main/cpp/examples/SwerveControllerCommand
New library used for auto: Pathplanner Documentation Currently, issues loading files to deploy directory. List for auto:
Requirements:
Documentation: https://docs.wpilib.org/en/stable/docs/software/kinematics-and-odometry/swerve-drive-kinematics.html https://docs.wpilib.org/en/stable/docs/software/kinematics-and-odometry/swerve-drive-odometry.html https://docs.wpilib.org/en/stable/docs/software/pathplanning/trajectory-tutorial/index.html https://docs.wpilib.org/en/stable/docs/software/pathplanning/pathweaver/index.html
API:
SwerveControllerCommand(frc::Trajectory trajectory, std::function<frc::Pose2d()> pose, frc::SwerveDriveKinematics<NumModules> kinematics, frc::PIDController xController, frc::PIDController yController, frc::ProfiledPIDController<units::radians> thetaController, std::function<void(std::array<frc::SwerveModuleState, NumModules>)> output, Requirements requirements = {})
https://github.wpilib.org/allwpilib/docs/release/cpp/classfrc2_1_1_swerve_controller_command.htmlExample: https://github.com/wpilibsuite/allwpilib/tree/main/wpilibcExamples/src/main/cpp/examples/SwerveControllerCommand