mirror of
https://github.com/TimeCrafters/UltimateGoal.git
synced 2025-12-16 06:02:33 +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 {
|
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;
|
this.robot = robot;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import com.qualcomm.robotcore.hardware.HardwareMap;
|
|||||||
|
|
||||||
import org.cyberarm.engine.V2.CyberarmEngine;
|
import org.cyberarm.engine.V2.CyberarmEngine;
|
||||||
|
|
||||||
@TeleOp(name = "Cayden: First Program", group = "caden")
|
@TeleOp(name = "Caydens minibot", group = "Cayden")
|
||||||
|
|
||||||
public class miniboi extends CyberarmEngine {
|
public class miniboi extends CyberarmEngine {
|
||||||
private HardwareMap hardwareMap;
|
private HardwareMap hardwareMap;
|
||||||
@@ -18,13 +18,13 @@ import org.cyberarm.engine.V2.CyberarmEngine;
|
|||||||
public DcMotor driveright;
|
public DcMotor driveright;
|
||||||
|
|
||||||
public void hardwareInt() {
|
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