Updated motor/encoder names with that of SCDS Robot configuration
This commit is contained in:
@ -217,10 +217,10 @@ public final class MecanumDrive {
|
|||||||
|
|
||||||
// TODO: make sure your config has motors with these names (or change them)
|
// TODO: make sure your config has motors with these names (or change them)
|
||||||
// see https://ftc-docs.firstinspires.org/en/latest/hardware_and_software_configuration/configuring/index.html
|
// see https://ftc-docs.firstinspires.org/en/latest/hardware_and_software_configuration/configuring/index.html
|
||||||
leftFront = hardwareMap.get(DcMotorEx.class, "leftFront");
|
leftFront = hardwareMap.get(DcMotorEx.class, "Drive front lt");
|
||||||
leftBack = hardwareMap.get(DcMotorEx.class, "leftBack");
|
leftBack = hardwareMap.get(DcMotorEx.class, "Drive back lt");
|
||||||
rightBack = hardwareMap.get(DcMotorEx.class, "rightBack");
|
rightBack = hardwareMap.get(DcMotorEx.class, "Drive back rt");
|
||||||
rightFront = hardwareMap.get(DcMotorEx.class, "rightFront");
|
rightFront = hardwareMap.get(DcMotorEx.class, "Drive front rt");
|
||||||
|
|
||||||
leftFront.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);
|
leftFront.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);
|
||||||
leftBack.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);
|
leftBack.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);
|
||||||
|
@ -38,9 +38,9 @@ public final class ThreeDeadWheelLocalizer implements Localizer {
|
|||||||
// TODO: make sure your config has **motors** with these names (or change them)
|
// TODO: make sure your config has **motors** with these names (or change them)
|
||||||
// the encoders should be plugged into the slot matching the named motor
|
// the encoders should be plugged into the slot matching the named motor
|
||||||
// see https://ftc-docs.firstinspires.org/en/latest/hardware_and_software_configuration/configuring/index.html
|
// see https://ftc-docs.firstinspires.org/en/latest/hardware_and_software_configuration/configuring/index.html
|
||||||
par0 = new OverflowEncoder(new RawEncoder(hardwareMap.get(DcMotorEx.class, "par0")));
|
par0 = new OverflowEncoder(new RawEncoder(hardwareMap.get(DcMotorEx.class, "encoder left")));
|
||||||
par1 = new OverflowEncoder(new RawEncoder(hardwareMap.get(DcMotorEx.class, "par1")));
|
par1 = new OverflowEncoder(new RawEncoder(hardwareMap.get(DcMotorEx.class, "encoder right")));
|
||||||
perp = new OverflowEncoder(new RawEncoder(hardwareMap.get(DcMotorEx.class, "perp")));
|
perp = new OverflowEncoder(new RawEncoder(hardwareMap.get(DcMotorEx.class, "encoder back")));
|
||||||
|
|
||||||
// TODO: reverse encoder directions if needed
|
// TODO: reverse encoder directions if needed
|
||||||
// par0.setDirection(DcMotorSimple.Direction.REVERSE);
|
// par0.setDirection(DcMotorSimple.Direction.REVERSE);
|
||||||
|
Reference in New Issue
Block a user