-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
16750 tuesday auto things, added a net scoring opmode (#68)
* 16750 auto things * Auto Changes for Observation Parking, not working, it's going berserk for some reason - Maggie --------- Co-authored-by: FTC16750 <[email protected]>
- Loading branch information
1 parent
72d0f47
commit 3887756
Showing
4 changed files
with
44 additions
and
6 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
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
39 changes: 39 additions & 0 deletions
39
Sixteen750/src/main/java/org/firstinspires/ftc/sixteen750/opmodes/auto/NetScoring.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,39 @@ | ||
package org.firstinspires.ftc.sixteen750.opmodes.auto; | ||
|
||
import com.acmerobotics.dashboard.FtcDashboard; | ||
import com.acmerobotics.dashboard.telemetry.MultipleTelemetry; | ||
import com.qualcomm.robotcore.eventloop.opmode.Autonomous; | ||
import com.technototes.library.command.CommandScheduler; | ||
import com.technototes.library.command.SequentialCommandGroup; | ||
import com.technototes.library.structure.CommandOpMode; | ||
import com.technototes.library.util.Alliance; | ||
import org.firstinspires.ftc.sixteen750.AutoConstants; | ||
import org.firstinspires.ftc.sixteen750.Hardware; | ||
import org.firstinspires.ftc.sixteen750.Robot; | ||
import org.firstinspires.ftc.sixteen750.commands.auto.Paths; | ||
import org.firstinspires.ftc.sixteen750.controls.DriverController; | ||
import org.firstinspires.ftc.sixteen750.helpers.StartingPosition; | ||
|
||
@Autonomous(name = "NetScoring") | ||
@SuppressWarnings("unused") | ||
public class NetScoring extends CommandOpMode { | ||
|
||
public Robot robot; | ||
public DriverController controls; | ||
public Hardware hardware; | ||
|
||
@Override | ||
public void uponInit() { | ||
telemetry = new MultipleTelemetry(telemetry, FtcDashboard.getInstance().getTelemetry()); | ||
hardware = new Hardware(hardwareMap); | ||
robot = new Robot(hardware, Alliance.RED, StartingPosition.Observation); | ||
robot.drivebase.setPoseEstimate(AutoConstants.FORWARD.toPose()); | ||
CommandScheduler.scheduleForState( | ||
new SequentialCommandGroup( | ||
Paths.SampleScoring(robot), | ||
CommandScheduler::terminateOpMode | ||
), | ||
OpModeState.RUN | ||
); | ||
} | ||
} |
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