mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
[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:
@@ -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",
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user