We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a70d2a commit 4d90f76Copy full SHA for 4d90f76
main/cpp/Robot.cpp
@@ -162,13 +162,23 @@ void Robot::RobotPeriodic() {
162
m_rightIntake.Set(0);
163
}
164
// defense system
165
- if(fightStick.GetRawAxis(2) == 1)
+ if(fightStick.GetRawAxis(2) == 1) //no promisesz
166
{
167
- for(int i = 0; i < kdnf; i++)
+ isPressed = true;
168
+ while(isPressed == true)
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
+ }
176
177
178
+ else
179
180
181
182
183
//Hatch Panel Launcher
184
//They are set backwards if timerr is avaible would like to switch them around in both the code and wiring
0 commit comments