Class NullDevice

java.lang.Object
com.cdarobotics.cdalib.devices.Device
com.cdarobotics.cdalib.devices.NullDevice

public class NullDevice extends Device
A no-op Device whose update() does nothing. Useful as a placeholder for optional or missing hardware, letting a subsystem hold a non-null device reference and run unchanged when a real device is not present.
  • Constructor Details

    • NullDevice

      public NullDevice()
  • Method Details

    • update

      public void update()
      Does nothing — this device has no hardware to read from or write to.
      Specified by:
      update in class Device