Skip to content

Commit

Permalink
Removed logDevices, don't really care.
Browse files Browse the repository at this point in the history
Initialize vision in all modes including TeleOp for auto-assist.
  • Loading branch information
trc492 committed Sep 13, 2023
1 parent 953b6cd commit 0fa0477
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions TeamCode/src/main/java/teamcode/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,20 +78,17 @@ public Robot(TrcRobot.RunMode runMode)
// Initialize global objects.
//
opMode = FtcOpMode.getInstance();
opMode.hardwareMap.logDevices();
dashboard = FtcDashboard.getInstance();
globalTracer = TrcDbgTrace.getGlobalTracer();

speak("Init starting");
//
// Initialize vision subsystems.
//
if (runMode != TrcRobot.RunMode.TELEOP_MODE &&
(RobotParams.Preferences.useAprilTagVision ||
RobotParams.Preferences.useColorBlobVision ||
RobotParams.Preferences.useTensorFlowVision))
if (RobotParams.Preferences.useAprilTagVision ||
RobotParams.Preferences.useColorBlobVision ||
RobotParams.Preferences.useTensorFlowVision)
{
// Don't need to enable vision for TeleOp because we are not doing auto-assist involving vision.
vision = new Vision(this, null);
}
//
Expand Down

0 comments on commit 0fa0477

Please sign in to comment.