Skip to content

Commit

Permalink
Add RevExtension2.init() call
Browse files Browse the repository at this point in the history
  • Loading branch information
rbrott committed Nov 6, 2018
1 parent 911931b commit e94292e
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import org.openftc.revextensions2.ExpansionHubEx;
import org.openftc.revextensions2.ExpansionHubMotor;
import org.openftc.revextensions2.RevBulkData;
import org.openftc.revextensions2.RevExtensions2;

import java.util.Arrays;
import java.util.List;
Expand All @@ -28,6 +29,8 @@ public class SampleTankDriveREVOptimized extends SampleTankDriveBase {
public SampleTankDriveREVOptimized(HardwareMap hardwareMap) {
super();

RevExtensions2.init();

// TODO: adjust the names of the following hardware devices to match your configuration
// for simplicity, we assume that the desired IMU and drive motors are on the same hub
// note: this strategy is still applicable even if the drive motors are split between hubs
Expand Down

0 comments on commit e94292e

Please sign in to comment.