VikingsRobotics / Robot24

Other
0 stars 0 forks source link

Autonomous Swerve Driving #3

Closed ThePhoenixFox closed 7 months ago

ThePhoenixFox commented 8 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

Example: https://github.com/wpilibsuite/allwpilib/tree/main/wpilibcExamples/src/main/cpp/examples/SwerveControllerCommand

ThePhoenixFox commented 8 months ago

New library used for auto: Pathplanner Documentation Currently, issues loading files to deploy directory. List for auto: