mirror of
https://github.com/Team4388/RiseOfRidgebotics2020.git
synced 2026-06-09 08:48:01 -06:00
Add PID and Motion Magic Commands
This commit is contained in:
@@ -36,8 +36,8 @@ public class DriveToDistancePID extends CommandBase {
|
||||
// Called every time the scheduler runs while the command is scheduled.
|
||||
@Override
|
||||
public void execute() {
|
||||
m_drive.gotoPositionPID(m_drive.m_leftFrontMotor, m_leftTarget);
|
||||
m_drive.gotoPositionPID(m_drive.m_rightFrontMotor, m_rightTarget);
|
||||
m_drive.runPositionPID(m_drive.m_leftFrontMotor, m_leftTarget);
|
||||
m_drive.runPositionPID(m_drive.m_rightFrontMotor, m_rightTarget);
|
||||
}
|
||||
|
||||
// Called once the command ends or is interrupted.
|
||||
|
||||
Reference in New Issue
Block a user