Advertisement
Guest User

Untitled

a guest
Jan 26th, 2020
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.79 KB | None | 0 0
  1.     public static RevBulkData bulkData;
  2.  
  3.     public static ExpansionHubMotor frontLeftDrive;
  4.     public static ExpansionHubMotor frontRightDrive;
  5.     public static ExpansionHubMotor backLeftDrive;
  6.     public static ExpansionHubMotor backRightDrive;
  7.  
  8.     public static ExpansionHubEx expansionHub;
  9.  
  10.  
  11. // Ran in initialization
  12.         expansionHub = hardwareMap.get(ExpansionHubEx.class, "Expansion Hub 1");
  13.         frontLeftDrive  = (ExpansionHubMotor) hardwareMap.get(DcMotorEx.class, "front_left_drive");
  14.         frontRightDrive = (ExpansionHubMotor)hardwareMap.get(DcMotorEx.class, "front_right_drive");
  15.         backLeftDrive = (ExpansionHubMotor)hardwareMap.get(DcMotorEx.class, "back_left_drive");
  16.         backRightDrive = (ExpansionHubMotor) hardwareMap.get(DcMotorEx.class, "back_right_drive");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement