コード例 #1
0
ファイル: EV3Bot.java プロジェクト: MrTj458/MyFirstEV3Project
 private void setupPilot() {
   Wheel leftWheel = WheeledChassis.modelWheel(Motor.A, 55).offset(-72);
   Wheel rightWheel = WheeledChassis.modelWheel(Motor.B, 55).offset(72);
   Chassis baseChassis =
       new WheeledChassis(new Wheel[] {leftWheel, rightWheel}, WheeledChassis.TYPE_DIFFERENTIAL);
   botPilot = new MovePilot(baseChassis);
 }
コード例 #2
0
ファイル: EV3Bot.java プロジェクト: zeajenson/FirstEV3Project
 public void setupPilot() {
   Wheel leftWheel = WheeledChassis.modelWheel(Motor.A, 43.2).offset(-72);
   Wheel rightWheel = WheeledChassis.modelWheel(Motor.B, 43.2).offset(72);
   Chassis baseChassis =
       new WheeledChassis(new Wheel[] {leftWheel, rightWheel}, WheeledChassis.TYPE_DIFFERENTIAL);
   navigation = new MovePilot(baseChassis);
 }