Skip to content

Commit 5cd0f54

Browse files
Update Robot.cpp
1 parent 0e29146 commit 5cd0f54

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

main/cpp/Robot.cpp

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
//320x240 might help with frames per second, reddit user said they got around 20-30 fps instead of our ~4 fps
99

10+
bool isPressed = false;
1011
#include "Robot.h"
1112

1213
void Robot::RobotInit() {
@@ -160,7 +161,15 @@ void Robot::RobotPeriodic() {
160161
m_leftIntake.Set(0);
161162
m_rightIntake.Set(0);
162163
}
163-
164+
// defense system
165+
if(fightStick.GetRawAxis(2) == 1)
166+
{
167+
for(int i = 0; i < kdnf; i++)
168+
{
169+
170+
}
171+
}
172+
164173
//Hatch Panel Launcher
165174
//They are set backwards if timerr is avaible would like to switch them around in both the code and wiring
166175
if (fightStick.GetRawButton(4) == 0) {

0 commit comments

Comments
 (0)