assertParamsNotNull

protected fun assertParamsNotNull(parameters: Array<Any>): Boolean

Utility function to run NullSafety.assertComponentArgs() on the given parameters, usually on the motors/hardware/critical objects passed into the constructor. If this check fails, your subsystem will automatically disable the update() method from calling to prevent exceptions, no-oping the subsystem. A 'SUBSYSTEM FAULT' will be added to telemetry, and exceptions from this class will be muted.

Return

whether the assertion passed or failed, where you can stop the constructor if this returns false

Parameters

parameters

constructor parameters for your subsystem that should be checked for null, in which case the subsystem should be disabled