Closed C0W0 closed 4 years ago
Go to src/main/java/frc/robot/subsystems/TalonFXDriveSubsystem.java
RobotContainer.java, not TalonFXDriveSubsystem.java
For the flywheel, we need to configure the Spark Max motor controllers (I only configured 1 of them and I haven't tested it)
For wiring, follow http://www.revrobotics.com/sparkmax-quickstart/ For software, follow http://www.revrobotics.com/sparkmax-software/
Give each motor controller an ID/device number and use the correct device number in /src/main/java/frc/robot/subsystems/FlywheelSingleSubsystem.java
at
private final CANSparkMax m_motor = new CANSparkMax(<id>, MotorType.kBrushless);
Instructions for the robot base (4x Falcon 500) Go to
src/main/java/frc/robot/subsystems/TalonFXDriveSubsystem.java
and assign the respective device numbers at declarations of the motors:The names should be self-explanatory. Things that should be tested: Manual Drive: Go to
src/main/java/frc/robot/subsystems/TalonFXDriveSubsystem.java
and search for "//ManualDrive" Uncomment the 3 lines after "//ManualDrive". That is:Now deploy the code, and test it with the joystick.
Motion Profile Drive:
Go to
src/main/java/frc/robot/subsystems/TalonFXDriveSubsystem.java
and search for "//MotionProfileDrive" Uncomment the 2 lines after "//MotionProfileDrive". That is:Now deploy the code. Press the trig button on the joystick and you should see some motor actions
After testing you should re-comment out any code that you uncommented for testing