This repository was archived by the owner on Sep 14, 2019. It is now read-only.
File tree Expand file tree Collapse file tree
Robot2018/src/org/usfirst/frc/team199/Robot2018/commands Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313 *
1414 */
1515public class AutoLift extends Command implements PIDOutput {
16+ /**
17+ * All distances are - 1 foot for initial height of intake and + 3 inches for wiggle room for dropping cubes
18+ * Also, acutal distances are divided by 3 because according to cad, the lift will have a 1:3 ratio from winch
19+ * to actual height.
20+ */
1621
17- // All distances are - 1 foot for initial height of intake and + 3 inches for wiggle room for dropping cubes
18- //Distance to switch
19- // 18.75 inches in starting position
20- private final double SWITCH_DIST = 9.75 ;
21- //Distance to scale
22- // 5 feet starting
23- private final double SCALE_DIST = 51 ;
24- //Distance to bar
25- // 7 feet starting; bar distance should be changed because I'm not aware how climber mech will be positioned
26- private final double BAR_DIST = 72 ;
22+ /**
23+ * Distance to switch
24+ * 18.75 inches in starting position (this measurement is the fence that surrounds the switch)
25+ * 9.75 / 3 for ratio = 3.25
26+ */
27+ private final double SWITCH_DIST = 3.25 ;
28+ /**
29+ * Distance to scale
30+ * 5 feet starting
31+ * 51 / 3 = 17
32+ */
33+ private final double SCALE_DIST = 17 ;
34+ /**
35+ * Distance to bar
36+ * 72 / 3 = 24
37+ * 7 feet starting; bar distance should be changed because I'm not aware how climber mech will be positioned
38+ */
39+ private final double BAR_DIST = 24 ;
2740 private double desiredDist = 0 ;
2841 private double currDist = 0 ;
2942 private LiftInterface lift ;
You can’t perform that action at this time.
0 commit comments