File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -162,13 +162,23 @@ void Robot::RobotPeriodic() {
162
162
m_rightIntake.Set (0 );
163
163
}
164
164
// defense system
165
- if (fightStick.GetRawAxis (2 ) == 1 )
165
+ if (fightStick.GetRawAxis (2 ) == 1 ) // no promisesz
166
166
{
167
- for (int i = 0 ; i < kdnf; i++)
167
+ isPressed = true ;
168
+ while (isPressed == true )
168
169
{
169
- double xVal = accel.GetX ();
170
+ m_left.Set (accel.GetX ());// One of these needs to be negative...
171
+ m_right.Set (accel.GetX ());
172
+ if (fightStick.GetRawAxis (2 ) == 0 )
173
+ {
174
+ isPressed = false ;
175
+ }
170
176
}
171
177
}
178
+ else
179
+ {
180
+ isPressed = false ;
181
+ }
172
182
173
183
// Hatch Panel Launcher
174
184
// They are set backwards if timerr is avaible would like to switch them around in both the code and wiring
You can’t perform that action at this time.
0 commit comments