This repository has been archived by the owner on Jun 24, 2021. It is now read-only.
forked from ftctechnh/ftc_app
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
84 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/BeaconDoubleAutoExecutor_Red.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package org.firstinspires.ftc.teamcode; | ||
|
||
import com.qualcomm.robotcore.eventloop.opmode.Autonomous; | ||
|
||
/** | ||
* Created by djfigs1 on 11/18/16. | ||
*/ | ||
|
||
@Autonomous(name = "RED Auto") | ||
public class BeaconDoubleAutoExecutor_Red extends RobotHardware { | ||
|
||
private ActionSequence actionSequence; | ||
private Action action = null; | ||
|
||
@Override | ||
public void init() { | ||
super.init(); | ||
actionSequence = new RobotDoubleAutoFollowSequence(TEAM.RED); | ||
} | ||
|
||
@Override | ||
public void init_loop(){ | ||
beaconPosition(1); | ||
} | ||
|
||
@Override | ||
public void loop() { | ||
action = actionSequence.getCurrentAction(); | ||
if (action != null) { | ||
telemetry.addData("Heading", gyroSensor.getHeading()); | ||
if (action.doAction(this)) { | ||
actionSequence.currentActionComplete(); | ||
action = actionSequence.getCurrentAction(); | ||
} | ||
} | ||
else { | ||
requestOpModeStop(); | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters