set frame rate

Hello,
I would like to measure the speed of small moving and jumping objects. The problem is that frame rate is not constant. The set_framerate command is no longer available. Is there a way to have a constant frame rate (i.e 10 FPS)?
Michel

Hi, you need to use the pyb.mills() command to track the elapsed milliseconds and then wait until a certain number are elapsed:

http://docs.openmv.io/library/pyb.html?highlight=millis#pyb.millis

To save power in a spin loop use: http://docs.openmv.io/library/pyb.html?highlight=millis#pyb.wfi