ftctechnh / ftc_app

FTC Android Studio project to create FTC Robot Controller app.
761 stars 3.16k forks source link

VL53L0X I2C driver writes a ridiculous amount of registers on initialization #684

Open Windwoes opened 5 years ago

Windwoes commented 5 years ago

The initVL53L0X method in the VL53L0X I2C driver writes an insane amount of registers with no comments indicating what those writes are for and why they're needed. Due to each I2C command the Expansion Hub taking about 3ms, the "responsiveness" of pressing "init" for the OpMode is dramatically reduced, adding like 500ms of latency.

Is there any way for this to be optimized a bit?