In order to get an impression about what the load looks like while using my open source ESC on an electric longboard, I wrote a program using Qt and opencv to do real-time video overlay logging while testing. This is the first test I made in my basement:
Four threads are used:
- Capture images from the webcam (framegrabber.cpp).
- Overlay the images with real-time information and graphs (frameplotter.cpp).
- Encode a x264 video from the images (videocoder.cpp).
- Record audio, fetch data from the ESC and keep everything in sync (logger.cpp).
The source code and a small description on how to install and use it can be found on github;
Here is one indoor test in the V-building at Chalmers University test where the temperature is logged as well:
and this is one outdoor test with some uphills around chalmers:
I have been using my laptop with an external webcam for the tests in the videos, but it also works on my odroid u3 with lower resolution.