Skip to content
This repository has been archived by the owner on Aug 31, 2024. It is now read-only.

Commit

Permalink
Merge pull request #86 from rh-robotics/milo-drive-constants-v2
Browse files Browse the repository at this point in the history
Update Drive Constants
  • Loading branch information
DragonDev07 authored Feb 7, 2024
2 parents 61363ac + 2eee07c commit e16bf3c
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import com.qualcomm.hardware.rev.RevHubOrientationOnRobot;
import com.qualcomm.robotcore.hardware.DcMotor;
import com.qualcomm.robotcore.hardware.DcMotorEx;
import com.qualcomm.robotcore.hardware.DcMotorSimple;
import com.qualcomm.robotcore.hardware.HardwareMap;
import com.qualcomm.robotcore.hardware.IMU;
import com.qualcomm.robotcore.hardware.PIDFCoefficients;
Expand Down Expand Up @@ -102,6 +103,10 @@ public SampleMecanumDrive(HardwareMap hardwareMap) {
rightRear = hardwareMap.get(DcMotorEx.class, "rightRear");
rightFront = hardwareMap.get(DcMotorEx.class, "rightFront");

leftFront.setDirection(DcMotorSimple.Direction.REVERSE);
leftRear.setDirection(DcMotorSimple.Direction.REVERSE);


motors = Arrays.asList(leftFront, leftRear, rightRear, rightFront);

for (DcMotorEx motor : motors) {
Expand Down

0 comments on commit e16bf3c

Please sign in to comment.