mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-02 08:10:35 +08:00
vl53lxx driver: change I2C frequency to 400 kHz
This commit is contained in:
committed by
Beat Küng
parent
8a4e144e86
commit
9c1cbdfa11
@@ -200,7 +200,7 @@ private:
|
||||
extern "C" __EXPORT int vl53lxx_main(int argc, char *argv[]);
|
||||
|
||||
VL53LXX::VL53LXX(uint8_t rotation, int bus, int address) :
|
||||
I2C("VL53LXX", VL53LXX_DEVICE_PATH, bus, address, 100000),
|
||||
I2C("VL53LXX", VL53LXX_DEVICE_PATH, bus, address, 400000), // 400 kHz only for Crazyflie (other boards use max 100 kHz)
|
||||
_rotation(rotation),
|
||||
_reports(nullptr),
|
||||
_sensor_ok(false),
|
||||
|
||||
Reference in New Issue
Block a user