Hi everybody!
So I am working on an autonomous Rover project, I am using the following:
- The CubePilot’s Orange Cube: as flight controller
- QGroundControl: as ground control station
- PX4 Firmware version 1.14.0
- Airframe type: Rover
- Vehicle: Generic Ground Vehicle (Ackermann)
- pymavlink.mavutil for communication between the cube and the companion computer
- PX4_sitl with gazebo-classic_rover as testing platform (gazebo11)
I was able to successfully do an ‘autonomous’ mission using the px4_sitl so now it is time to test it on the ‘real’ Rover. However, when I try to arm the Rover in Offboard mode in QGroundControl, it gives me the following message:
"No offboard signal
The offboard component is not sending setpoints or the required estimate (e.g. position) is missing. "
I know that I need to send a SET_POSITION_TARGET_LOCAL_NED with a frequency of at least 2Hz, so I just used a simple command in the following code to achieve this:
master.mav.set_position_target_local_ned_send(
0,
master.target_system,
master.target_component,
mavutil.mavlink.MAV_FRAME_LOCAL_NED,
0b110111111000,
5, 0, 0, # x, y, z positions
0, 0, 0, # vx, vy, vz velocities
0, 0, 0, # ax, ay, az accelerations
0, 0 # yaw, yaw_rate
)
I have also tried changing this to a velocity command but it gives me the same result of not being able to arm the vehicle.
When I use the QGC’s Analyze tool > MAVlink inspector it does allow me to read SET_POSITION_TARGET_LOCAL_NED, which reads an x value of 5.
Does somebody know how to solve this?
With kind regards,
Jurjen