Welcome to RDK X5 Robot repository
2.USB Wireless Controller Remote Control
USB Wireless Controller Remote Control Tutorial
USB Wireless Controller Remote Control Tutorial1. USB wireless controller key positions2. Connect USB wireless controller2.1 Install USB wireless controller battery2.2 Insert the USB wireless controller receiver2.3 Turn on the power of the USB wireless controller2.4 Start the robot3. Control the robot
1. USB wireless controller key positions

① L1: no function
② L2: no function
③ R1: no function
④ R2: no function
⑤ SELECT: no function
⑥ START: buzzer switch, wake up USB wireless controller
⑦ Direction keys: up to control forward, down to control backward, left to control left translation, right to control right translation.
⑧ Function keys: X controls left rotation, B controls right rotation, Y and A have no function
⑨ Left joystick: up to control forward, down to control backward, left to control left translation, right to control right translation, press the joystick to control speed.
⑩ Right joystick: Left controls left rotation, right controls right rotation, up, down and press joystick have no function.
⑪ MODE: Connect to some computer systems to pop up the game menu, long press to switch control mode.
⑫ USB wireless receiving terminal: Connect to the USB interface of the host.
⑬ USB wireless controller power switch: turn ON to turn on, turn OFF to turn off
2. Connect USB wireless controller
2.1 Install USB wireless controller battery
Please open the battery cover on the back of the USB wireless controller, and then install two No. 7 batteries into the battery compartment according to the following figure, and then cover the battery cover.

2.2 Insert the USB wireless controller receiver
The following figure shows the receiver of the USB wireless controller:

Please insert the USB wireless controller receiver into any USB port on the motherboard, as shown in the figure below.

2.3 Turn on the power of the USB wireless controller
Please turn the power switch at the bottom of the USB wireless controller to ON to turn on the power. If you do not use it for a long time, please turn it to OFF to save power.

2.4 Start the robot
Turn on the power switch of RDK-X5-Robot and wait for the RDK-X5-Robot to start up. The startup process takes about 1 minute. After the startup is completed, there will be a buzzer to remind you.
Continuously short press the [START] key of the USB wireless handle. If you hear the buzzer, it means the connection is successful.
The USB wireless handle control program will start automatically when the APP control program is turned on by default.
If the APP control program that starts automatically at startup is turned off, you can also manually run the following command to start the handle control program.
xxxxxxxxxxpython3 /home/sunrise/sunriseRobot/app_SunriseRobot/joystick.py
3. Control the robot
After the connection is successful, you can use the handle to control the robot according to the function introduction of [USB wireless handle key position].
The USB wireless controller will automatically enter sleep mode if it is not operated for a period of time. You can press the START button to wake up the controller.
Note:
A: Since the USB wireless controller needs to confirm the code when connecting to the USB receiver, please avoid connecting multiple receivers at the same time, otherwise interference may occur and other receivers may be connected.
B: If the indicator light flashes, it means that the controller is disconnected from the receiver. Please keep it within 10 meters.