small misc changes
This commit is contained in:
@ -7,7 +7,7 @@ by Tyler Veness. However, the OTOS localizer uses its own onboard system for cal
|
||||
which I do not know about.
|
||||
|
||||
## Setting Your Localizer
|
||||
Go to line `69` in the `PoseUpdater` class, and replace the `new ThreeWheelLocalizer(hardwareMap)`
|
||||
Go to line `70` in the `PoseUpdater` class, and replace the `new ThreeWheelLocalizer(hardwareMap)`
|
||||
with the localizer that applies to you:
|
||||
* If you're using drive encoders, put `new DriveEncoderLocalizer(hardwareMap)`
|
||||
* If you're using two wheel odometry, put `new TwoWheelLocalizer(hardwareMap)`
|
@ -59,6 +59,8 @@ public class TeleOpEnhancements extends OpMode {
|
||||
public void loop() {
|
||||
driveVector.setOrthogonalComponents(-gamepad1.left_stick_y, -gamepad1.left_stick_x);
|
||||
driveVector.setMagnitude(MathFunctions.clamp(driveVector.getMagnitude(), 0, 1));
|
||||
|
||||
// TODO: if you want to make this field centric, then just remove this line
|
||||
driveVector.rotateVector(follower.getPose().getHeading());
|
||||
|
||||
headingVector.setComponents(-gamepad1.left_stick_x, follower.getPose().getHeading());
|
||||
|
Reference in New Issue
Block a user