VL53L5 Can't get 4x4_CONTINUOUS mode to run faster than 17Hz.
My use case would benefit from high speed but I'm having trouble getting it to run at 60Hz. I'm using the X-NUCLEO-53L5A1 on an NUCLEO-L476RG board with the XCUBE-TOF1 software. I'm using the SimpleRanging example program: XCUBE-TOF1\Projects\NUCLEO-L476RG\Examples\53L5A1\53L5A1_SimpleRanging
I have tried this in polling mode with a short polling period and also in interrupt mode. Neither will go faster than 17Hz.
I edit this line in app_x-cube-tof1.c to increase the speed:
Profile.Frequency = 60;I inserted a simple HAL_GetTick() and calculate the actual frequency and it wont run faster than 16.67Hz. 5Hz and 10Hz work great but then it maxes out as shown here:
Profile.Frequency = 5; /* Actually runs at 4.97Hz */
Profile.Frequency = 10; /* Actually runs at 9.95Hz */
Profile.Frequency = 20; /* Actually runs at 16.59Hz */
Profile.Frequency = 30; /* Actually runs at 16.61Hz */
Profile.Frequency = 60; /* Actually runs at 16.67Hz */Any ideas what is limiting it or where I should optimize the code to speed things up? Thanks for your help!
