You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ Keep the required reading handy while you work—the docs answer most "why does
44
44
45
45
## Stage 1 — Observe the Coordinate Frame
46
46
1. In simulation, drive the robot in a gentle square on the blue end of the field. Pay attention to how the robot icon moves when you push the sticks.
47
-
2. In AdvantageScope, watch `FieldSimulation/RobotPosition` and identify which axis grows as you move downfield versus side-to-side.
47
+
2. In AdvantageScope, watch `RealOutputs/Odometry/Robot` and identify which axis grows as you move downfield versus side-to-side.
48
48
3. In `Drive.periodic()` (the subsystem already responsible for odometry updates), add something along the lines of:
49
49
```java
50
50
Pose2d currentPose = getPose();
@@ -67,7 +67,7 @@ Keep the required reading handy while you work—the docs answer most "why does
67
67
_Commit suggestion:_ once the telemetry graphs look right, make a commit such as `git commit -am "Add drive pose telemetry"` so you can roll back easily later.
68
68
69
69
## Stage 2 — Define Field Reference Poses with Units
70
-
1. Create a new file `src/main/java/frc/robot/constants/FieldReferencePoses.java` (or a similar package that fits your style). Give it a structure like:
70
+
1. Create a new file `src/main/java/frc/robot/constants/FieldReferencePoses.java`. Give it a structure like:
71
71
```java
72
72
packagefrc.robot.constants;
73
73
@@ -145,7 +145,7 @@ _Commit suggestion:_ once the telemetry graphs look right, make a commit such as
145
145
}
146
146
```
147
147
Accepting a `Distance` parameter lets callers provide tolerances in any unit.
148
-
2. Bind a temporary helper (for instance, `controller.rightBumper().onTrue(Commands.runOnce(() -> fieldVectorTo(...))))`) so you can sample the vector in sim. Watch the `Drive/TargetDirection` log: if the target is forward and left, expect positive X and negative Y. Adjust the math until the signs feel correct, then delete the temporary binding.
148
+
2. Bind a temporary helper (for instance, `controller.a().onTrue(Commands.runOnce(() -> fieldVectorTo(...))))`) so you can sample the vector in sim. Watch the `Drive/TargetDirection` log: if the target is forward and left, expect positive X and negative Y. Adjust the math until the signs feel correct, then delete the temporary binding.
149
149
3.**Checkpoint 3:** When the logged vector aligns with your intuition from Stage 1, remove the temporary helper and keep this method for the next stage.
0 commit comments