mirror of
https://github.com/TimeCrafters/UltimateGoal.git
synced 2025-12-15 05:52:35 +00:00
a thing
This commit is contained in:
@@ -4,9 +4,9 @@ import org.cyberarm.engine.V2.CyberarmState;
|
||||
|
||||
public class Minibot_State extends CyberarmState {
|
||||
|
||||
private Minibot_State robot;
|
||||
private miniboi robot;
|
||||
|
||||
public Minibot_State(Minibot_State robot) {
|
||||
public Minibot_State(miniboi robot) {
|
||||
this.robot = robot;
|
||||
}
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ import com.qualcomm.robotcore.hardware.HardwareMap;
|
||||
|
||||
import org.cyberarm.engine.V2.CyberarmEngine;
|
||||
|
||||
@TeleOp(name = "Cayden: First Program", group = "caden")
|
||||
@TeleOp(name = "Caydens minibot", group = "Cayden")
|
||||
|
||||
public class miniboi extends CyberarmEngine {
|
||||
private HardwareMap hardwareMap;
|
||||
@@ -18,13 +18,13 @@ import org.cyberarm.engine.V2.CyberarmEngine;
|
||||
public DcMotor driveright;
|
||||
|
||||
public void hardwareInt() {
|
||||
driveleft = hardwareMap.dcMotor.get("frontLeft");
|
||||
driveright = hardwareMap.dcMotor.get("frontRight");
|
||||
addState(new Minibot_State(robot,1,12));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setup() {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setup() {
|
||||
driveleft = hardwareMap.dcMotor.get("frontLeft");
|
||||
driveright = hardwareMap.dcMotor.get("frontRight");
|
||||
addState(new Minibot_State(this));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user