projects
/
ozzloy@gmail.com
/
3501-spark-go
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
continue to flesh out initial codebase
[ozzloy@gmail.com/3501-spark-go]
/
src
/
org
/
usfirst
/
frc
/
team3501
/
robot
/
subsystems
/
Drivetrain.java
diff --git
a/src/org/usfirst/frc/team3501/robot/subsystems/Drivetrain.java
b/src/org/usfirst/frc/team3501/robot/subsystems/Drivetrain.java
index 5285956a4b78898b4ff296e3459fd47c2dded9cd..5dd39abb4a716f1bf8a7729b57696371281ec823 100644
(file)
--- a/
src/org/usfirst/frc/team3501/robot/subsystems/Drivetrain.java
+++ b/
src/org/usfirst/frc/team3501/robot/subsystems/Drivetrain.java
@@
-1,6
+1,7
@@
package org.usfirst.frc.team3501.robot.subsystems;
import org.usfirst.frc.team3501.robot.RobotMap;
package org.usfirst.frc.team3501.robot.subsystems;
import org.usfirst.frc.team3501.robot.RobotMap;
+import org.usfirst.frc.team3501.robot.commands.DriveWithJoysticks;
import edu.wpi.first.wpilibj.CANJaguar;
import edu.wpi.first.wpilibj.RobotDrive;
import edu.wpi.first.wpilibj.CANJaguar;
import edu.wpi.first.wpilibj.RobotDrive;
@@
-8,7
+9,7
@@
import edu.wpi.first.wpilibj.command.Subsystem;
public class Drivetrain extends Subsystem {
public class Drivetrain extends Subsystem {
- RobotDrive robotDrive;
+
private
RobotDrive robotDrive;
public Drivetrain() {
CANJaguar frontLeft = new CANJaguar(RobotMap.FRONT_LEFT_ADDRESS);
public Drivetrain() {
CANJaguar frontLeft = new CANJaguar(RobotMap.FRONT_LEFT_ADDRESS);
@@
-46,6
+47,8
@@
public class Drivetrain extends Subsystem {
return (x + Math.signum(x) * Math.sqrt(Math.abs(x))) / 2;
}
return (x + Math.signum(x) * Math.sqrt(Math.abs(x))) / 2;
}
- public void initDefaultCommand() {}
+ public void initDefaultCommand() {
+ setDefaultCommand(new DriveWithJoysticks());
+ }
}
}