Skip to content

Commit 7079ac1

Browse files
FinalCompetition
1 parent 84505f3 commit 7079ac1

File tree

4 files changed

+19
-7
lines changed

4 files changed

+19
-7
lines changed

src/Autonomous/CommandListMaker.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ void CommandListMaker::makeDefenceBreaker() {
141141
}
142142
//Seting the Values and Pushing the Command
143143

144-
DriveDistance = 28;
144+
DriveDistance = 35;
145145
DriveSpeed = 0.75;
146146

147147
driveStep* driveForward = new driveStep();

src/SensorControl/NavxSensorControl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ void NavxSensorControl::TeleopInit() {
194194
commandDriveState = DriveSystemState::running;
195195
t = NULL;
196196

197-
turnController->SetPID(0.055, 0.0004, 0.0);
197+
turnController->SetPID(0.040, 0.0025, 0.0);
198198
left->Reset();
199199
right->Reset();
200200
left2->Reset();

src/Shooter/Shooter.cpp

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -225,13 +225,25 @@ void Shooter::TeleopPeriodic() {
225225
}
226226

227227
void Shooter::readXboxComp() {
228+
/*A - Nothing
229+
* B - Cancel Shot
230+
* X - Low Shot
231+
* Y - Nothing
232+
* Left Trigger - Intake
233+
* Left Bumper - Vision
234+
* Right Trigger - Shooter
235+
* Right Bumper - Shooter Up/Down
236+
* Back - Nothing
237+
* Start - Cancel Vision (in Nav)
238+
*/
239+
228240
if (xbox->getRightBumperPressed()) { //Up
229241
angle = !angle;
230242
}
231243

232-
if (xbox->getAPressed()) {
244+
/*if (xbox->getAPressed()) {
233245
intakeDirection = !intakeDirection;
234-
}
246+
}*/
235247

236248
/*if (xbox->getXPressed()) {
237249
if (shootPercentState < 4) {
@@ -272,9 +284,9 @@ void Shooter::readXboxComp() {
272284
break;
273285
}
274286

275-
if (xbox->getBackHeld()) {
287+
/*if (xbox->getBackHeld()) {
276288
runIntake = !runIntake;
277-
}
289+
}*/
278290

279291
switch (sState) {
280292
case ready:
@@ -479,7 +491,7 @@ void Shooter::updateMotor2() {
479491
}
480492

481493
float Shooter::acceleration(float newS, float oldS) {
482-
float accel = 0.0025;
494+
float accel = 0.005;
483495

484496
if (fabs(newS - oldS) > accel) {
485497
if (oldS > newS)

sysProps.xml

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)