-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from rjan939/main
add: RR ManualFeedForwardTuner `targetVelocity` and `measuredVelocity` Opposite of Each Other
- Loading branch information
Showing
2 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
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
15 changes: 15 additions & 0 deletions
15
src/roadrunner_056/manual_feed_forward_tuner_opposite_velocities.md
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,15 @@ | ||
# Target Velocity is Positive When Measured Velocity is Negative and Vice Versa When Tuning Manual Feedforward | ||
|
||
If MotorDirectionDebugger works perfectly, this simply means that either your right side encoders are plugged in to the wrong ports(so swap `frontRight` and `backRight` encoder cables) or your left side encoders are plugged in to the wrong ports(so swap `frontLeft` and `backLeft` encoder cables). An easy way to debug this is to add a `printEncoderValues` telemetry method in `SampleMecanumDrive`. | ||
|
||
```java | ||
public void printEncoderValues(Telemetry telemetry) { | ||
telemetry.addData("LeftFrontPos: ", leftFront.getCurrentPosition()); | ||
telemetry.addData("RightFrontPos: ", rightFront.getCurrentPosition()); | ||
telemetry.addData("LeftRearPos: ", leftRear.getCurrentPosition()); | ||
telemetry.addData("RightBackPos: ", rightRear.getCurrentPosition()); | ||
} | ||
|
||
Then at the end of every loop in MotorDirectionDebugger, call drive.printEncoderValues(telemetry); | ||
``` | ||
*Last updated: 2024-01-20* |