mirror of
https://github.com/Team4388/RiseOfRidgebotics2020.git
synced 2026-06-09 08:48:01 -06:00
Replaced GotoCoordinate with Distance PID instead Motion Magic
This commit is contained in:
@@ -43,8 +43,9 @@ public class GotoCoordinates extends SequentialCommandGroup {
|
||||
m_endAngle = endAngle;
|
||||
|
||||
|
||||
addCommands( new TurnDegrees(m_drive, m_currentAngle),
|
||||
new DriveStraightToPositionMM(m_drive, m_hypotDist),
|
||||
addCommands( new TurnDegrees(m_drive, m_currentAngle),
|
||||
new Wait(m_drive, 1),
|
||||
new DriveStraightToPositionPID(m_drive, m_hypotDist),
|
||||
new TurnDegrees(m_drive, m_endAngle - m_currentAngle));
|
||||
}
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ public class Wait extends CommandBase {
|
||||
/**
|
||||
* Creates a new WaitCommand.
|
||||
*/
|
||||
public Wait(float seconds, SubsystemBase subsystem) {
|
||||
public Wait(SubsystemBase subsystem, float seconds) {
|
||||
// Use addRequirements() here to declare subsystem dependencies.
|
||||
|
||||
m_waitTime = (long) (seconds * 1000);
|
||||
|
||||
Reference in New Issue
Block a user