mirror of
https://github.com/TimeCrafters/CenterStage
synced 2025-12-15 16:52:35 +00:00
created the steps for the first autonomousV1
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
package org.timecrafters.CenterStage.Autonomous.Engines;
|
||||
|
||||
import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
|
||||
|
||||
import org.timecrafters.CenterStage.Common.PrototypeRobot;
|
||||
|
||||
import dev.cyberarm.engine.V2.CyberarmEngine;
|
||||
|
||||
@Autonomous(name = "AutonomousV1", group = "Autonomous" /*, preselectTeleOp = "TeleOp"*/)
|
||||
|
||||
public class AutonomousV1Engine extends CyberarmEngine {
|
||||
|
||||
PrototypeRobot robot;
|
||||
@Override
|
||||
public void setup() {
|
||||
robot = new PrototypeRobot("Hello World");
|
||||
|
||||
setupFromConfig(
|
||||
robot.configuration,
|
||||
"org.timecrafters.Autonomous.States",
|
||||
robot,
|
||||
PrototypeRobot.class,
|
||||
"Sample Auto");
|
||||
|
||||
// Camera Looks and recognizes the position
|
||||
// -----------------------------------------------------------------------------------------------camera model differentiation state
|
||||
|
||||
// Drive forward
|
||||
// ----------------------------------------------------------------------------------------------------------------------drive state
|
||||
|
||||
// rotate to the direction of the designated pixel placement location
|
||||
// -------------------------------------------------------------------------------------------------------------------rotation state
|
||||
|
||||
// place the first pixel
|
||||
// -------------------------------------------------------------------------------------------------------collector open close state
|
||||
|
||||
// Back Up
|
||||
// ----------------------------------------------------------------------------------------------------------------------drive state
|
||||
|
||||
// rotate towards the backdrop
|
||||
// -------------------------------------------------------------------------------------------------------------------rotation state
|
||||
|
||||
// drive forward to the backdrop
|
||||
// ----------------------------------------------------------------------------------------------------------------------drive state
|
||||
|
||||
// strafe to the position of the pixel
|
||||
// ----------------------------------------------------------------------------------------------------------------------drive state
|
||||
|
||||
// flip shoulder and elbow depositor out to deposit
|
||||
// ---------------------------------------------------------------------------------------------------shoulder, elbow movement state
|
||||
|
||||
// deposit
|
||||
// -------------------------------------------------------------------------------------------------------depositor open close state
|
||||
|
||||
// strafe over to the inside area of the backstage to park
|
||||
// ---------------------------------------------------------------------------------------------------------------------drive state
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user