本文整理汇总了Java中com.qualcomm.robotcore.eventloop.opmode.OpModeRegistrar类的典型用法代码示例。如果您正苦于以下问题:Java OpModeRegistrar类的具体用法?Java OpModeRegistrar怎么用?Java OpModeRegistrar使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
OpModeRegistrar类属于com.qualcomm.robotcore.eventloop.opmode包,在下文中一共展示了OpModeRegistrar类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: registerMyOpModes
import com.qualcomm.robotcore.eventloop.opmode.OpModeRegistrar; //导入依赖的package包/类
@OpModeRegistrar
public static void registerMyOpModes(OpModeManager manager) {
// Un-comment any line to enable that sample.
// Or add your own lines to register your Team opmodes.
// Basic Templates
// manager.register("Iterative Opmode", TemplateOpMode_Iterative.class);
// manager.register("Linear Opmode", TemplateOpMode_Linear.class);
// Driving Samples
// manager.register("Teleop POV", PushbotTeleopPOV_Linear.class);
// manager.register("Teleop Tank", PushbotTeleopTank_Iterative.class);
// manager.register("Auto Drive Gyro", PushbotAutoDriveByGyro_Linear.class);
// manager.register("Auto Drive Encoder", PushbotAutoDriveByEncoder_Linear.class);
// manager.register("Auto Drive Time", PushbotAutoDriveByTime_Linear.class);
// manager.register("Auto Drive Line", PushbotAutoDriveToLine_Linear.class);
// manager.register("K9 Telop", K9botTeleopTank_Linear.class);
// Sensor Samples
// manager.register("AdaFruit Color", SensorAdafruitRGB.class);
// manager.register("HT Color", SensorHTColor.class);
// manager.register("LEGO Light", SensorLEGOLight.class);
// manager.register("LEGO Touch", SensorLEGOTouch.class);
// manager.register("MR Color", SensorMRColor.class);
// manager.register("MR Gyro", SensorMRGyro.class);
// manager.register("MR IR Seeker", SensorMRIrSeeker.class);
// manager.register("MR ODS", SensorMROpticalDistance.class);
// Concept Samples
// manager.register("Null Op", ConceptNullOp.class);
// manager.register("Compass Calibration", ConceptCompassCalibration.class);
// manager.register("DIM as Indicator", ConceptDIMAsIndicator.class);
// manager.register("I2C Address Change", ConceptI2cAddressChange.class);
// manager.register("Ramp Motor Speed", ConceptRampMotorSpeed.class);
// manager.register("Scan Servo", ConceptScanServo.class);
// manager.register("Telemetry", ConceptTelemetry.class);
// manager.register("Vuforia Navigation", ConceptVuforiaNavigation.class);
}
开发者ID:forgod01,项目名称:5094-2016-2017,代码行数:39,代码来源:ConceptRegisterOpModes.java
示例2: registerMyOpModes
import com.qualcomm.robotcore.eventloop.opmode.OpModeRegistrar; //导入依赖的package包/类
@OpModeRegistrar
public static void registerMyOpModes(OpModeManager manager) {
// Un-comment any line to enable that sample.
// Or add your own lines to register your Team opmodes.
// Basic Templates
// manager.register("Iterative Opmode", TemplateOpMode_Iterative.class);
// manager.register("Linear Opmode", TemplateOpMode_Linear.class);
// Driving Samples
// manager.register("Teleop POV", PushbotTeleopPOV_Linear.class);
// manager.register("Teleop Tank", PushbotTeleopTank_Iterative.class);
// manager.register("Auto Drive Gyro", PushbotAutoDriveByGyro_Linear.class);
// manager.register("Auto Drive Encoder", PushbotAutoDriveByEncoder_Linear.class);
// manager.register("Auto Drive Time", PushbotAutoDriveByTime_Linear.class);
// manager.register("Auto Drive Line", PushbotAutoDriveToLine_Linear.class);
// manager.register("K9 Telop", K9botTeleopTank_Linear.class);
// Sensor Samples
// manager.register("AdaFruit IMU", SensorAdafruitIMU.class);
// manager.register("AdaFruit IMU Cal", SensorAdafruitIMUCalibration.class);
// manager.register("AdaFruit Color", SensorAdafruitRGB.class);
// manager.register("DIM DIO", SensorDIO.class);
// manager.register("HT Color", SensorHTColor.class);
// manager.register("LEGO Light", SensorLEGOLight.class);
// manager.register("LEGO Touch", SensorLEGOTouch.class);
// manager.register("MR Color", SensorMRColor.class);
// manager.register("MR Gyro", SensorMRGyro.class);
// manager.register("MR IR Seeker", SensorMRIrSeeker.class);
// manager.register("MR ODS", SensorMROpticalDistance.class);
// Concept Samples
// manager.register("Null Op", ConceptNullOp.class);
// manager.register("Compass Calibration", ConceptCompassCalibration.class);
// manager.register("DIM as Indicator", ConceptDIMAsIndicator.class);
// manager.register("I2C Address Change", ConceptI2cAddressChange.class);
// manager.register("Ramp Motor Speed", ConceptRampMotorSpeed.class);
// manager.register("Scan Servo", ConceptScanServo.class);
// manager.register("Telemetry", ConceptTelemetry.class);
// manager.register("Vuforia Navigation", ConceptVuforiaNavigation.class);
}
开发者ID:ykarim,项目名称:FTC2016,代码行数:42,代码来源:ConceptRegisterOpModes.java
示例3: registerMyOpModes
import com.qualcomm.robotcore.eventloop.opmode.OpModeRegistrar; //导入依赖的package包/类
@OpModeRegistrar
public static void registerMyOpModes(OpModeManager manager) {
// Un-comment any line to enable that sample.
// Or add your own lines to register your Team opmodes.
// Basic Templates
// manager.register("Iterative Opmode", BasicOpMode_Iterative.class);
// manager.register("Linear Opmode", BasicOpMode_Linear.class);
// Driving Samples
// manager.register("Teleop POV", PushbotTeleopPOV_Linear.class);
// manager.register("Teleop Tank", PushbotTeleopTank_Iterative.class);
// manager.register("Auto Drive Gyro", PushbotAutoDriveByGyro_Linear.class);
// manager.register("Auto Drive Encoder", PushbotAutoDriveByEncoder_Linear.class);
// manager.register("Auto Drive Time", PushbotAutoDriveByTime_Linear.class);
// manager.register("Auto Drive Line", PushbotAutoDriveToLine_Linear.class);
// manager.register("K9 Telop", K9botTeleopTank_Linear.class);
// Sensor Samples
// manager.register("BNO055 IMU", SensorBNO055IMU.class);
// manager.register("BNO055 IMU Cal", SensorBNO055IMUCalibration.class);
// manager.register("AdaFruit Color", SensorAdafruitRGB.class);
// manager.register("Digital Touch", SensorDigitalTouch.class);
// manager.register("DIM DIO", SensorDIO.class);
// manager.register("HT Color", SensorHTColor.class);
// manager.register("HT Gyro", SensorHTGyro.class);
// manager.register("LEGO Light", SensorLEGOLight.class);
// manager.register("LEGO Touch", SensorLEGOTouch.class);
// manager.register("MR Color", SensorMRColor.class);
// manager.register("MR Compass", SensorMRCompass.class);
// manager.register("MR Gyro", SensorMRGyro.class);
// manager.register("MR IR Seeker", SensorMRIrSeeker.class);
// manager.register("MR ODS", SensorMROpticalDistance.class);
// manager.register("MR Range Sensor", SensorMRRangeSensor.class);
// manager.register("REV Color Distance", SensorREVColorDistance.class);
// Concept Samples
// manager.register("Null Op", ConceptNullOp.class);
// manager.register("Compass Calibration", ConceptCompassCalibration.class);
// manager.register("DIM as Indicator", ConceptDIMAsIndicator.class);
// manager.register("I2C Address Change", ConceptI2cAddressChange.class);
// manager.register("Ramp Motor Speed", ConceptRampMotorSpeed.class);
// manager.register("Scan Servo", ConceptScanServo.class);
// manager.register("Telemetry", ConceptTelemetry.class);
// manager.register("Vuforia Navigation", ConceptVuforiaNavigation.class);
}
开发者ID:trc492,项目名称:Ftc2018RelicRecovery,代码行数:47,代码来源:ConceptRegisterOpModes.java
注:本文中的com.qualcomm.robotcore.eventloop.opmode.OpModeRegistrar类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论