For greater adherence to behavior of the FTC control system, it should not be possible to obtain references to hardware before the INIT button is pressed (so, calls to hardwareMap.get, hardwareMap.dcMotor.get, etc, should not work).
With this change, attempts to obtain hardware references will result in an error message, and return of a null object. This ultimately will result in an exception, and the op mode will exit.
For greater adherence to behavior of the FTC control system, it should not be possible to obtain references to hardware before the INIT button is pressed (so, calls to hardwareMap.get, hardwareMap.dcMotor.get, etc, should not work).
With this change, attempts to obtain hardware references will result in an error message, and return of a null object. This ultimately will result in an exception, and the op mode will exit.