Class VL53L0X

    • Constructor Detail

      • VL53L0X

        public VL53L0X​(int sensors)
        Initialise up to 4 VL53L0X time of flight sensors
        Parameters:
        sensors - number of sensors (1..4)
    • Method Detail

      • action

        public void action()
        Task function handling the general state and operations of this driver Not to be called manually!
        Specified by:
        action in interface Actionable
        Overrides:
        action in class Task
      • read

        public short[] read()
        Read last measurement data
        Returns:
        Distances in mm, the returned array has as many elements as sensors were requested in the constructor
      • reset

        public void reset()
        reset the sensor micro controller and sensors Not: This takes some time. Using read() directly after will return incorrect measurements until reset is done.
      • resetDone

        public boolean resetDone()
        Check if driver and hardware are operating normally or in the process of resetting
        Returns:
        true when in normal operation, false while resetting