mirror of
https://github.com/TimeCrafters/CenterStage
synced 2025-12-15 16:52:35 +00:00
Began Pizza bot autonomous
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
package org.timecrafters.CenterStage.Autonomous.Engines;
|
||||
|
||||
import dev.cyberarm.engine.V2.CyberarmEngine;
|
||||
|
||||
public class SodiPizzaAutoRedRightEngine extends CyberarmEngine {
|
||||
@Override
|
||||
public void setup() {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
package org.timecrafters.CenterStage.Common;
|
||||
|
||||
import com.qualcomm.robotcore.hardware.DcMotor;
|
||||
import com.qualcomm.robotcore.hardware.HardwareMap;
|
||||
import com.qualcomm.robotcore.hardware.IMU;
|
||||
import com.qualcomm.robotcore.hardware.Servo;
|
||||
|
||||
import org.timecrafters.Library.Robot;
|
||||
import org.timecrafters.TimeCraftersConfigurationTool.library.TimeCraftersConfiguration;
|
||||
|
||||
import dev.cyberarm.engine.V2.CyberarmEngine;
|
||||
|
||||
public class SodiPizzaMinibotObject extends Robot {
|
||||
|
||||
public HardwareMap hardwareMap;
|
||||
public DcMotor flDrive, frDrive, blDrive, brDrive;
|
||||
public Servo shoulder, hand;
|
||||
public IMU imu;
|
||||
private String string;
|
||||
|
||||
private CyberarmEngine engine;
|
||||
public TimeCraftersConfiguration configuration;
|
||||
|
||||
public SodiPizzaMinibotObject() {}
|
||||
|
||||
@Override
|
||||
public void setup() {
|
||||
|
||||
this.engine = CyberarmEngine.instance;
|
||||
this.hardwareMap = CyberarmEngine.instance.hardwareMap;
|
||||
|
||||
//Motor defining
|
||||
flDrive = engine.hardwareMap.dcMotor.get("FL Drive");
|
||||
frDrive = engine.hardwareMap.dcMotor.get("FR Drive");
|
||||
blDrive = engine.hardwareMap.dcMotor.get("BL Drive");
|
||||
brDrive = engine.hardwareMap.dcMotor.get("BR Drive");
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -19,7 +19,7 @@ public class MiniYellowTeleOPv2 extends CyberarmState {
|
||||
public MotorEx flDrive, frDrive, blDrive, brDrive;
|
||||
public IMU imu;
|
||||
private double flPower, frPower, blPower, brPower;
|
||||
private float lStickY, yTransitPercent, xTransitPercent, rotPercent, percentDenom;
|
||||
private float yTransitPercent, xTransitPercent, rotPercent, percentDenom;
|
||||
|
||||
public TimeCraftersConfiguration configuration;
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user