- Breakout boards
This page has deprecated and moved to the new documentation framework of the main Bitcraze website. Please go to https://www.bitcraze.io/ and go to the menu 'products'.
Adds the possibility to fly with precise height control. Using the ToF sensor VL53L1x the Crazyflie 2.0 can measure the distance from the sensor to a ground object at up 4 meters.
Z-ranger v2 deck schematic
To get started you can follow the Z-Ranger getting started guide.
The Z-ranger deck will be automatically detected when it is mounted. By default the range is available on the log variable “range.zrange” and is used instead of the pressure by internal algorithms.
The Kalman filter is a sensor fusion algorithm that is still experimental. You can try it by recompiling the Crazyflie firmware.
To enable altitude control using the Z-ranger with the kalman filter, the Crazyflie firmware has to be recompiled with the following config.mk:
ESTIMATOR=kalman CFLAGS += -DUPDATE_KALMAN_WITH_RANGING -DKALMAN_DECOUPLE_XY
Once the recompiled firmware, precise height control using the altitude-hold mode. To activate precise height control press the altitude hold button on the gamepad and release the thrust. This will “lock” the height as the Crazyflie 2.0 goes into automatic height control mode. The up and down commands will then control the desired vertical speed instead of thrust.
The sensor can measure distances up to 4 meters but often fails at distances above 3m. In case of unreliable readings the Crazyflie 2.0 will slowly drift. If that happens bring it down to the detection range.
Note: Currently the mobile clients does not support this functionality!