Aion Robotics R1 UGV
PX4 v1.15The Aion R1vehicle was chosen to test and improve the differential drive support for PX4, and to improve driver support for Roboclaw Motor Controllers, such as the RoboClaw 2x15A.
The documentation and driver information here should also make it easier to work with Roboclaw controllers on other vehicles, and to work with vehicles like the Aion R6.
Currently, PX4 supports MANUAL mode for this setup.
Parts List
Assembly
The assembly consists of a 3D-printed frame on which all the autopilot parts were attached. For this build this includes an Auterion Skynode, connected to a Pixhawk Adapter Board that interfaces with the RoboClaw motor controllers over serial.
INFO
If using a standard Pixhawk you could connect the RoboClaw to the Autopilot without an Adapter Board.
The RoboClaw should be connected to a suitable suitable serial (UART) port on the flight controller, such as GPS2
or TELEM1
. Other RoboClaw wiring is detailed in the RoboClaw User Manual 'Packet Serial Wiring' section and shown below (this setup has been validated for compatibility).
PX4 Configuration
Rover Configuration
Use QGroundControl for rover configuration:
- In the Basic Configuration section, select the Airframe tab.
- Choose Aion Robotics R1 UGV under the Rover category.
RoboClaw Configuration
First configure the serial connection:
Navigate to the Parameters section in QGroundControl.
Set the RBCLW_SER_CFG parameter to the serial port to which the RoboClaw is connected (such as
GPS2
).RBCLW_COUNTS_REV specifies the number of encoder counts required for one wheel revolution. This value should be left at
1200
for the testedRoboClaw 2x15A Motor Controller
. Adjust the value based on your specific encoder and wheel setup.RoboClaw motor controllers must be assigned a unique address on the bus. The default address is 128 and you should not need to change this (if you do, update the PX4 parameter RBCLW_ADDRESS to match).
INFO
PX4 does not support multiple RoboClaw motor controllers in the same vehicle — each controller needs a unique address on the bus, and there is only one parameter for setting the address in PX4 (
RBCLW_ADDRESS
).
Then configure the actuator configuration:
Navigate to Actuators Configuration & Testing in QGroundControl.
Select the RoboClaw driver from the list of Actuator Outputs.
For the channel assignments, disarm, minimum, and maximum values, please refer to the image below.
For systems with more than two motors, it is possible to assign the same function to several motors. The reason for the unusual values, can be found in the RoboClaw User Manual under
Compatibility Commands
forPacket Serial
:plainDrive motor forward. Valid data range is 0 - 127. A value of 127 = full speed forward, 64 = about half speed forward and 0 = full stop.
See also
- roboclaw driver
- Roboclaw User Manual