mirror of
https://github.com/TimeCrafters/CenterStage
synced 2025-12-15 08:42:35 +00:00
Got PrototypeBot driving*
This commit is contained in:
@@ -37,8 +37,11 @@ public class PrototypeRobot extends Robot {
|
||||
backLeft = new MotorEx(hardwareMap, "backLeft");
|
||||
|
||||
//IMU
|
||||
imu = hardwareMap.get(RevIMU.class, "imu");
|
||||
imu.init(new BNO055IMU.Parameters());
|
||||
imu = new RevIMU(hardwareMap, "imu");
|
||||
BNO055IMU.Parameters parameters = new BNO055IMU.Parameters();
|
||||
parameters.angleUnit = BNO055IMU.AngleUnit.DEGREES;
|
||||
parameters.accelUnit = BNO055IMU.AccelUnit.METERS_PERSEC_PERSEC;
|
||||
imu.init(parameters);
|
||||
|
||||
// input motors exactly as shown below
|
||||
xDrive = new HDrive(frontLeft, frontRight,
|
||||
|
||||
@@ -12,6 +12,7 @@ public class PrototypeRobotEngine extends CyberarmEngine {
|
||||
@Override
|
||||
public void setup() {
|
||||
this.robot = new PrototypeRobot("Hello World");
|
||||
this.robot.setup();
|
||||
|
||||
addState(new PrototypeRobotDrivetrainState(robot));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user