[wpilib] Remove RobotDrive (#3295)

This has been deprecated for several years, and its functionality has been
completely superseded by other drive classes (DifferentialDrive et al).
This commit is contained in:
Peter Johnson
2021-04-10 10:28:32 -07:00
committed by GitHub
parent 1dc81669c2
commit d7fabe81fe
13 changed files with 25 additions and 2103 deletions

View File

@@ -12,7 +12,7 @@
},
{
"name": "Tank Drive",
"description": "Demonstrate the use of the RobotDrive class doing teleop driving with tank steering",
"description": "Demonstrate the use of the DifferentialDrive class doing teleop driving with tank steering",
"tags": [
"Actuators",
"Joystick",
@@ -37,7 +37,7 @@
},
{
"name": "Mecanum Drive",
"description": "Demonstrate the use of the RobotDrive class doing teleop driving with Mecanum steering",
"description": "Demonstrate the use of the MecanumDrive class doing teleop driving with Mecanum steering",
"tags": [
"Actuators",
"Joystick",

View File

@@ -39,8 +39,8 @@ public class Robot extends TimedRobot {
}
/**
* The motor speed is set from the joystick while the RobotDrive turning value is assigned from
* the error between the setpoint and the gyro angle.
* The motor speed is set from the joystick while the DifferentialDrive turning value is assigned
* from the error between the setpoint and the gyro angle.
*/
@Override
public void teleopPeriodic() {

View File

@@ -9,7 +9,7 @@ import edu.wpi.first.wpilibj.PWMSparkMax;
import edu.wpi.first.wpilibj.TimedRobot;
import edu.wpi.first.wpilibj.drive.MecanumDrive;
/** This is a demo program showing how to use Mecanum control with the RobotDrive class. */
/** This is a demo program showing how to use Mecanum control with the MecanumDrive class. */
public class Robot extends TimedRobot {
private static final int kFrontLeftChannel = 2;
private static final int kRearLeftChannel = 3;

View File

@@ -10,8 +10,8 @@ import edu.wpi.first.wpilibj.TimedRobot;
import edu.wpi.first.wpilibj.drive.DifferentialDrive;
/**
* This is a demo program showing the use of the RobotDrive class, specifically it contains the code
* necessary to operate a robot with tank drive.
* This is a demo program showing the use of the DifferentialDrive class, specifically it contains
* the code necessary to operate a robot with tank drive.
*/
public class Robot extends TimedRobot {
private DifferentialDrive m_myRobot;