This repository was archived by the owner on Apr 17, 2021. It is now read-only.
Commit d190e8b GitHub Actions
committed
1 parent 0c15eab commit d190e8b Copy full SHA for d190e8b
File tree 4 files changed +9
-7
lines changed
RobotCode2020/src/main/java/frc/robot
4 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,11 @@ public class OI {
28
28
public Button abutton = new JoystickButton (controller , RobotMap .A_BUTTON_ID );
29
29
public Button bbutton = new JoystickButton (controller , RobotMap .B_BUTTON_ID );
30
30
public Button leftBumperButton = new JoystickButton (controller , RobotMap .LB_BUTTON_ID );
31
+
31
32
public OI () {
32
- leftBumperButton .whileHeld (new InvertDriveSet ()); //Donst' wokr Ill just do it kidna janl in the acutl file /pk me not smart
33
+ leftBumperButton .whileHeld (
34
+ new InvertDriveSet ()); // Donst' wokr Ill just do it kidna janl in the acutl file /pk me
35
+ // not smart
33
36
}
34
37
// There are a few additional built in buttons you can use. Additionally,
35
38
// by subclassing Button you can create custom triggers and bind those to
@@ -54,5 +57,4 @@ public OI() {
54
57
public double getAxis (int axis ) {
55
58
return controller .getRawAxis (axis );
56
59
}
57
-
58
60
}
Original file line number Diff line number Diff line change @@ -45,6 +45,5 @@ public class RobotMap {
45
45
public static final int LB_BUTTON_ID = 4 ;
46
46
// public static final int JOYSTICK_LEFT_TRIGGER_ID = 0;
47
47
48
-
49
48
// public static final int JOYSTICK_MAILBOX_ROLLERS_ID = 0;
50
49
}
Original file line number Diff line number Diff line change @@ -26,8 +26,10 @@ protected void initialize() {}
26
26
// Called repeatedly when this Command is scheduled to run
27
27
@ Override
28
28
protected void execute () {
29
- double speed = Robot .m_oi .getAxis (RobotMap .JOYSTICK_DRIVE_FORWARDS_ID ) * -1 * InvertDriveSet .getInverted ();
30
- double rotation = Robot .m_oi .getAxis (RobotMap .JOYSTICK_DRIVE_ROTATION_ID ) * InvertDriveSet .getInverted ();
29
+ double speed =
30
+ Robot .m_oi .getAxis (RobotMap .JOYSTICK_DRIVE_FORWARDS_ID ) * -1 * InvertDriveSet .getInverted ();
31
+ double rotation =
32
+ Robot .m_oi .getAxis (RobotMap .JOYSTICK_DRIVE_ROTATION_ID ) * InvertDriveSet .getInverted ();
31
33
32
34
Robot .drivetrain .drive (speed , rotation );
33
35
}
Original file line number Diff line number Diff line change @@ -44,8 +44,7 @@ protected void end() {
44
44
// Called when another command which requires one or more of the same
45
45
// subsystems is scheduled to run
46
46
@ Override
47
- protected void interrupted () {
48
- }
47
+ protected void interrupted () {}
49
48
50
49
public static int getInverted () {
51
50
return inverted ;
You can’t perform that action at this time.
0 commit comments