Skip to content

Commit

Permalink
Task 2 Completion
Browse files Browse the repository at this point in the history
  • Loading branch information
PriyanshuK-ACL committed Oct 18, 2024
1 parent b9938d7 commit 13ae719
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/subsystems/XRPDrivetrain.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public void arcadeDrive(double xaxisSpeed, double zaxisRotate) {
//TODO:Task 2-Write a function that makes the robot take in a left wheel speed and a right wheel speed, and move at those speeds.
//HINT:This is called a tank drive, maybe there is a function that can easily allow for it?
//HINT:To see all the functions that the drivetrain has, type "m_diffDrive." without the quotes and look at the options generated by auto complete.
public void tankDriveCommand(double m_leftMotor, Double m_rightMotor){
public void tankDriveCommand(double m_leftMotor, double m_rightMotor){
m_diffDrive.tankDrive(m_leftMotor, m_rightMotor);
}

Expand Down

0 comments on commit 13ae719

Please sign in to comment.