What’s the difference?
The reason that I ask is that the balance bot updates motor control very fast in order to be able to balance. I want to be able to update at this speed also. The reason is that I want to use it with a fast moving robot using computer vision.
When using “BrickPi.MotorSpeed[port1] = speed” I get quite slow updates but the balance bot uses “set_motor_speed(PORT_MOTOR_LEFT , powerLeft)” and gets very fast updates.
I have ran some tests on my robot driving around using computer vision. The program will time how long it is running and count how many frames(loops around the whole control process) it processed then at the end do a simple calculation for FPS. When I am running the motors it only gets about 6 FPS but if I remove “BrickPi.MotorSpeed[port1] = speed” and carry the robot then I get 17FPS so this tells me that the process is way more being bogged down by the motor control rather than the processing of the computer vision.