Difference between revisions of "FTC Bring Up HuskyLens 20231127"

From wikidb
Jump to: navigation, search
(Core Links)
Line 4: Line 4:
  
 
* [https://github.com/edcepp/DeLaSalle/blob/main/SensorHuskyLensIEEE.java SensorHuskyLensIEEE.java] proof of concept code
 
* [https://github.com/edcepp/DeLaSalle/blob/main/SensorHuskyLensIEEE.java SensorHuskyLensIEEE.java] proof of concept code
* [https://javadoc.io/doc/org.firstinspires.ftc/Hardware/latest/com/qualcomm/hardware/dfrobot/HuskyLens.Block.html '''Block''']
 
 
* [https://wiki.dfrobot.com/HUSKYLENS_V1.0_SKU_SEN0305_SEN0336#target_3 wiki] from DFRobot
 
* [https://wiki.dfrobot.com/HUSKYLENS_V1.0_SKU_SEN0305_SEN0336#target_3 wiki] from DFRobot
 
* [https://www.youtube.com/watch?v=G6qpi7iCw2Q Husky Lens to Control Hub Wiring Tutorial FTC]
 
* [https://www.youtube.com/watch?v=G6qpi7iCw2Q Husky Lens to Control Hub Wiring Tutorial FTC]
 
* [https://github.com/FIRST-Tech-Challenge/FtcRobotController/blob/master/FtcRobotController/src/main/java/org/firstinspires/ftc/robotcontroller/external/samples/SensorHuskyLens.java Husky API referenceds and example code]
 
* [https://github.com/FIRST-Tech-Challenge/FtcRobotController/blob/master/FtcRobotController/src/main/java/org/firstinspires/ftc/robotcontroller/external/samples/SensorHuskyLens.java Husky API referenceds and example code]
  
 +
* Using HuskyLens blocks
 +
** [https://javadoc.io/doc/org.firstinspires.ftc/Hardware/latest/com/qualcomm/hardware/dfrobot/HuskyLens.Block.html '''Block''']
 +
            HuskyLens.Block[] blocks = huskyLens.blocks();
 +
            telemetry.addData("Block count", blocks.length);
 +
            for (int i = 0; i < blocks.length; i++) {
 +
                telemetry.addData("Block", blocks[i].toString());
 +
                telemetry.addData("Position x ", blocks[i].x);
 +
                telemetry.addData("Position y ", blocks[i].y);
 +
            }
  
 
== Reference Links for Future Lab Creation ==
 
== Reference Links for Future Lab Creation ==

Revision as of 13:14, 30 November 2023

Unformatted Notes

Core Links

  • Using HuskyLens blocks
           HuskyLens.Block[] blocks = huskyLens.blocks();
           telemetry.addData("Block count", blocks.length);
           for (int i = 0; i < blocks.length; i++) {
               telemetry.addData("Block", blocks[i].toString());
               telemetry.addData("Position x ", blocks[i].x);
               telemetry.addData("Position y ", blocks[i].y);
           }

Reference Links for Future Lab Creation

  • Loading External Samples from John Delacy
    • LoadingSamplesOnbotJava.jpg