InhibitAutoInit

@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class InhibitAutoInit

Inhibits the effect of AutoInit on an OpMode derivative. This is useful if you don't wish to initialise hardware automatically on this OpMode.

Manual RobotConfig calls will still function.

Must be attached on the running OpMode to work.

@TeleOp
@RobotConfig.InhibitAutoInit
public class MyMinimalTestOpMode extends BunyipsOpMode {
// RobotConfig instance will *NOT* be automatically initialised when this OpMode is run.
// Only has an impact if your RobotConfig is annotated with @AutoInit
// ...
}

Since

7.0.0