mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
vl53lxx driver: change I2C frequency to 400 kHz
This commit is contained in:
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),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user