File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,11 @@ void Robot::RobotPeriodic() {
74
74
} else {
75
75
Drive.ArcadeDrive (flightStick.GetRawAxis (1 ) * -.7 , flightStick.GetRawAxis (0 ) * .7 );
76
76
}
77
-
77
+ /* Forklift Auto
78
+ if (fightStick.GetRawButton(X) == 1) { //change here lmao loser
79
+ for(int i; i > time.Get(10)
80
+ } else {
81
+ } */
78
82
79
83
// timer.HasPeriodPassed(5)
80
84
@@ -143,11 +147,14 @@ void Robot::RobotPeriodic() {
143
147
}*/
144
148
145
149
// Ball Intake
146
- if (fightStick.GetRawButton (1 ) == 1 ) {
150
+ if ((fightStick.GetRawButton (1 ) == 1 ) && (fightStick.GetRawButton (X) == 1 )) {// determine what x is
151
+ m_leftIntake.Set (-1 ); // if inttake is fast, switch right and left intake with each other
152
+ m_rightIntake.Set (1 );
153
+ } else if (fightStick.GetRawButton (1 ) == 1 ) {
147
154
m_leftIntake.Set (.5 );// +
148
- m_rightIntake.Set (-1 * .5 );
155
+ m_rightIntake.Set (-.5 );
149
156
} else if (fightStick.GetRawButton (3 ) == 1 ) {
150
- m_leftIntake.Set (-1 * .5 );
157
+ m_leftIntake.Set (-.5 );
151
158
m_rightIntake.Set (.5 );
152
159
} else {
153
160
m_leftIntake.Set (0 );
You can’t perform that action at this time.
0 commit comments