mirror of
https://github.com/Team4388/RiseOfRidgebotics2020.git
synced 2026-06-09 00:38:00 -06:00
Merge branch 'master' into bouncePath
This commit is contained in:
@@ -197,8 +197,7 @@ public class RobotContainer {
|
|||||||
// continually sends updates to the Blinkin LED controller to keep the lights on
|
// continually sends updates to the Blinkin LED controller to keep the lights on
|
||||||
m_robotLED.setDefaultCommand(new RunCommand(() -> m_robotLED.updateLED(), m_robotLED));
|
m_robotLED.setDefaultCommand(new RunCommand(() -> m_robotLED.updateLED(), m_robotLED));
|
||||||
// runs the storage not
|
// runs the storage not
|
||||||
|
m_robotStorage.setDefaultCommand(new ManageStorage(m_robotStorage));
|
||||||
m_robotStorage.setDefaultCommand(new RunCommand(() -> m_robotStorage.runStorage(0), m_robotStorage));
|
|
||||||
m_robotLime.setDefaultCommand(new RunCommand(() -> m_robotLime.limeOff(), m_robotLime));
|
m_robotLime.setDefaultCommand(new RunCommand(() -> m_robotLime.limeOff(), m_robotLime));
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -419,7 +418,7 @@ public class RobotContainer {
|
|||||||
"TenBallMidComplete"
|
"TenBallMidComplete"
|
||||||
};
|
};
|
||||||
|
|
||||||
m_tenBallAutoMiddle = new TenBallAutoMiddle(m_robotDrive, buildPaths(tenBallAutoMiddlePaths));
|
//m_tenBallAutoMiddle = new TenBallAutoMiddle(m_robotDrive, buildPaths(tenBallAutoMiddlePaths));
|
||||||
|
|
||||||
String[] sequentialTestPaths = new String[]{
|
String[] sequentialTestPaths = new String[]{
|
||||||
"Seq1",
|
"Seq1",
|
||||||
|
|||||||
@@ -345,6 +345,7 @@ public class Drive extends SubsystemBase {
|
|||||||
|
|
||||||
public void updateOdometry(boolean reversed){
|
public void updateOdometry(boolean reversed){
|
||||||
if (reversed){
|
if (reversed){
|
||||||
|
|
||||||
m_odometry.update(Rotation2d.fromDegrees( -getGyroYaw()-180),
|
m_odometry.update(Rotation2d.fromDegrees( -getGyroYaw()-180),
|
||||||
-inchesToMeters(getDistanceInches(m_rightFrontMotor)),
|
-inchesToMeters(getDistanceInches(m_rightFrontMotor)),
|
||||||
inchesToMeters(getDistanceInches(m_leftFrontMotor)));
|
inchesToMeters(getDistanceInches(m_leftFrontMotor)));
|
||||||
|
|||||||
Reference in New Issue
Block a user