Car control routine

This tutorial is mainly used with Rosmaster X3. Users who do not use this product can refer to and learn our source code!

Hardware Preparation

The following is the most streamlined hardware configuration: Rosmaster X3 has this configuration

HT-10A remote control

It is necessary to install 4 No. 5 batteries in advance for the HT-10A remote control to power it:

image-20241211160408141

HT-10A remote controlDefault channel: The remote control does not perform channel mapping
CH1Right joystick: slide left and right
CH2Right joystick: slide up and down
CH3Left joystick: slide up and down
CH4Left joystick: slide left and right
CH5SWA channel
CH6SWB channel
CH7SWC channel
CH8SWD channel
CH9VRA channel
CH10VRB channel

SBUS receiver

The picture shows the hardware connection between the SBUS receiver and the ROS control board:

SBUS receiverROS control board
SS
+V
-G

image-20241211174339622

Experimental phenomenon

After downloading the rosmaster.hex file of the project to the ROS control board, the HT-10A remote controller can be controlled by the joystick after the SBUS receiver is successfully paired.

HT-10A remote controlDefault channel: The remote control does not perform channel mappingDefault channel: The remote control does not perform channel mappingCar functionCar function
CH1Right joystick: slide left and rightRotate left, rotate right
CH3Left joystick: slide up and downForward, backward
CH4Left joystick: slide left and rightMove left, move right
CH6SWB channelFree stop, brake stop

Note: If the control direction of the remote control is opposite to that of the HT-10A remote control, you can switch the positive and negative directions of the channel on the remote control.

Set the forward and reverse of the channel

image-20241211195435210

HT-10A remote controlFunction
Up key
Down key
Return key
Confirm key

Press the "Confirm key" on the main interface to enter the settings, and then use the "Up key", "Down key", "Return key", and "Confirm key" to switch different options:

image-20241212154138404