Skip to content
This repository has been archived by the owner on Jun 19, 2019. It is now read-only.

Commit

Permalink
Final friday night commit -- get ready for some trash code tomorrow morn
Browse files Browse the repository at this point in the history
  • Loading branch information
Wesley Chalmers committed Dec 15, 2018
1 parent f3d60e8 commit bfff84a
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 1 deletion.
Binary file modified bin/_pros_ld_timestamp.o
Binary file not shown.
Binary file modified bin/functions.cpp.o
Binary file not shown.
Binary file modified bin/output.bin
Binary file not shown.
Binary file modified bin/output.elf
Binary file not shown.
2 changes: 2 additions & 0 deletions include/ports.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@
#define ARM_MANUAL_SPEED_UP 96
#define ARM_MANUAL_SPEED_DOWN 127

#define ARM_CORRECTION_TIMEOUT 1000 // Time out after failure to correct arm

#define ARM_P1 0
#define ARM_P2 160
#define ARM_P3 330
Expand Down
2 changes: 1 addition & 1 deletion src/functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ void Arm::drop() {
motor.move(ARM_CORRECTION_SPEED);
}
delay(1);
} while (abs(pot - ARM_DROPPED) > 50 && millis() < 2000);
} while (abs(pot - ARM_DROPPED) > 50 && millis() < ARM_CORRECTION_TIMEOUT);
motor.move(0); // stop
motor.tare_position();
motor.move_absolute(0, 127); // brake
Expand Down

0 comments on commit bfff84a

Please sign in to comment.