mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-29 02:21:44 +00:00
Merge "Change SampleRobot template to use 0 based PWM"
This commit is contained in:
@@ -17,7 +17,7 @@ class Robot: public SampleRobot
|
||||
|
||||
public:
|
||||
Robot() :
|
||||
myRobot(1, 2), // these must be initialized in the same order
|
||||
myRobot(0, 1), // these must be initialized in the same order
|
||||
stick(1) // as they are declared above.
|
||||
{
|
||||
myRobot.SetExpiration(0.1);
|
||||
|
||||
@@ -28,7 +28,7 @@ public class Robot extends SampleRobot {
|
||||
Joystick stick;
|
||||
|
||||
public Robot() {
|
||||
myRobot = new RobotDrive(1, 2);
|
||||
myRobot = new RobotDrive(0, 1);
|
||||
myRobot.setExpiration(0.1);
|
||||
stick = new Joystick(1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user