You can control the maximum tilt of the platform. The default value is 5 degrees.
Hotkeys (Press in the actual openCV window)
When in calibration mode, press c again to start regular mode (start getting the disc and then lock it and get ball position etc) Doesn't work in manual mode (nothing to calibrate as disc positon/radius set manually)
There's a manual mode and automatic mode (via detecting circle of the disc color) to get the centerpoint and radius of the disk. Default is manual.
In manual mode, set the position and radius of the disc using the Trackbars.
- Open Arduino .ino file in the Arduino IDE.
- Select Arduino UNO board.
The arduino expects to recieve a byte for each motor in this order:
- center motor
- left motor
- right motor
After recieving each byte it will send it back to the host computer (jetson nano), which indicates it is ready to recieve the next one. Validate this byte before proceeding.