forked from FIRST-Tech-Challenge/FtcRobotController
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added teamcode module. added READMEs to some modules. moved lots of consts to Var object deleted unused Zoom opmode deleted unused RobotLocks.kt
- Loading branch information
1 parent
a205542
commit 3b27034
Showing
40 changed files
with
204 additions
and
155 deletions.
There are no files selected for viewing
8 changes: 4 additions & 4 deletions
8
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/AprilTagToPose.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/Var.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
package org.firstinspires.ftc.teamcode | ||
/* | ||
* Servo rotations: minimum 0.0, maximum 1.0 | ||
*/ | ||
/** | ||
* All the things that a driver might need to change, in one place. | ||
*/ | ||
object Var { | ||
// Rotations. | ||
|
||
// 'hover' - just above ground | ||
const val CLAW_HOVER_ROTATION = 0.669 | ||
|
||
// 'closing' - touching ground as much as possible without hindering claw operation | ||
const val CLAW_CLOSING_ROTATION = 0.720 | ||
|
||
// 'flipped' - pixel drop-off location | ||
const val CLAW_FLIPPED_ROTATION = 0.069 | ||
|
||
// 'stowed' - straight up or otherwise out of the way | ||
const val CLAW_STOWED_ROTATION = 0.370 | ||
|
||
const val CLAW_OPENED = 0.109 | ||
const val CLAW_CLOSED = 0.432 | ||
|
||
/** | ||
* The rotation of the box in the idle position. | ||
* The box is in the idle position when it is not being dumped, and also when the lift | ||
* is all the way down. Tune (DumperTestBench) with lift at 0 to avoid collisions. | ||
*/ | ||
const val BOX_ROTATE_IDLE = 0.531 | ||
|
||
/** | ||
* The rotation of the box in the dumping position. | ||
* Tune with the lift raised by hand. | ||
*/ | ||
const val BOX_ROTATE_DUMP = 0.316 | ||
|
||
/** | ||
* Latch position such that it does not block movement of the bottom pixel in the box. | ||
*/ | ||
const val BOX_LATCH_UNLATCHED = 0.4 | ||
|
||
/** | ||
* Latch position such that it blocks movement of the bottom pixel in the box. | ||
*/ | ||
const val BOX_LATCH_LATCHED = 0.78 | ||
} |
24 changes: 0 additions & 24 deletions
24
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/Variables.kt
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/Zoom.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 0 additions & 8 deletions
8
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/configurations/RobotLocks.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.