Welcome to Game Handle repository
ROSMASTER X3PLUS Car Control Tutorial
Controller control of X3PLUS
I. Experimental Environment
Three-mode handle
X3PLUS (Mandatory)
II. Experimental Procedures
Note
This tutorial needs to be used in conjunction with a X3PLUS . It cannot run without a X3PLUS
This tutorial's test environment takes 2.4G as an example!
The handle supports continuous transmission function. If you find it shaking when pressing the button, please turn off the corresponding button's continuous transmission function as per the manual
Before testing, ensure that the handle receiver is connected to the motherboard or PC, and switch the handle to DINPUT (Long press FN+SELECT for 3 seconds)
The indicator light showing a constant green color indicates that the handle has been successfully paired
Source code path address
~/yahboomcar_ws/src/yahboomcar_ctrl/launch/Start the car chassis
xxxxxxxxxxroslaunch yahboomcar_bringup bringup.launch Start the handle control
xxxxxxxxxxroslaunch yahboomcar_ctrl yahboom_joy.launch After turning it on, press the "START" button. When you hear the buzzer sound, you can start remote control. After the remote control has been on for a period of time without use, it will enter sleep mode. You need to press the "START" button to end the sleep.
Description of remote control effect
| Gamepad Control | Effect |
|---|---|
| Left Joystick Up/Down | Robot car moves forward/backward in a straight line |
| Left Joystick Left/Right | Robot car moves left/right in a straight line |
| Right Joystick Left/Right | Robot car rotates left/right |
| R1|RB | Control LED strip effects |
| R2|RT | End/activate other function modes |
| START Button | Control buzzer / Exit sleep mode |
| Left Stick Press | Adjust X/Y axis linear velocity |
| Right Stick Press | Adjust angular velocity |
| D-pad Up | No.4 Servo moves upward |
| D-pad Down | No.4 Servo moves downward |
| D-pad Left | No.3 Servo moves downward |
| D-pad Right | No.3 Servo moves upward |
| Button X | No.1 Servo moves left |
| Button Y | No.2 Servo moves upward |
| Button A | No.2 Servo moves downward |
| Button B | No.1 Servo moves right |
| L1|LB | No.6 Servo gripper (tighten) / No.5 Servo rotate right |
| L2|LT | No.6 Servo gripper (loosen) / No.5 Servo rotate left |
| SELECT Button | Switch control between No.6 / No.5 Servo |