Skip to content

Commit

Permalink
Merge pull request ftctechnh#4 from 6150FTC/master
Browse files Browse the repository at this point in the history
sahithi 11/15
  • Loading branch information
sahithi-thumuluri authored Nov 16, 2017
2 parents 71b7389 + 601616d commit fe48424
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public NewRobot(HardwareMap hardwareMap)
//Comment out if you don't want camera view on robo phone
//VuforiaLocalizer.Parameters parameters = new VuforiaLocalizer.Parameters();

floorColorSens = hardwareMap.colorSensor.get("floorColorSens");
parameters.vuforiaLicenseKey = VUFORIA_KEY;

parameters.cameraDirection = VuforiaLocalizer.CameraDirection.FRONT;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ public void runOpMode()
waitForStart();
sleep(300);
char colorOfPlatform = newRobot.getColor(newRobot.getFloorColorSens());
telemetry.addData("color = ", colorOfPlatform);
telemetry.addData("Hue value", newRobot.getHueValue(newRobot.getFloorColorSens()));
sleep(1000);
switch (colorOfPlatform)
{
case 'b':
Expand Down Expand Up @@ -85,6 +88,7 @@ public void runOpMode()
robot.stopAllMotors();
break;
default:
break;
}
}
}

0 comments on commit fe48424

Please sign in to comment.