File tree Expand file tree Collapse file tree 4 files changed +19
-7
lines changed
Expand file tree Collapse file tree 4 files changed +19
-7
lines changed Original file line number Diff line number Diff 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 ();
Original file line number Diff line number Diff 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 ();
Original file line number Diff line number Diff line change @@ -225,13 +225,25 @@ void Shooter::TeleopPeriodic() {
225225}
226226
227227void 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
481493float 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)
You can’t perform that action at this time.
0 commit comments