Good morning, everyone,
I am working on a project where I need to use Offboard mode. My setup consists of a Raspberry Pi 5 running Ubuntu 24.04.2, a Pixhawk 6X, and ROS2 as the communication protocol. I have connected the Raspberry Pi and the Pixhawk via Ethernet, and I have verified that they can successfully ping each other.
After confirming network connectivity, I start the agent on the Raspberry Pi with the following command:
MicroXRCEAgent udp4 -p 8888
Then, I use the PX4 example workspace and run:
ros2 run px4_ros_com offboard_control.py
This is a sample script to use Offboard mode. The initial command to switch to Offboard mode executes successfully, meaning the connection is not the issue. However, when I check QGroundControl, I see that the flight mode has indeed changed to Offboard, but arming is denied.
I have tried updating the firmware and recalibrating the sensors, but I still get the same error. The status summary does not indicate any issues.
If anyone can help, I would greatly appreciate it! Let me know if you need more documentation or details, I’d be happy to provide them.
Thanks in advance!
Hello, have you solved it? How do you solve it?
If you have some solutions please contact me ybhzuishuai@gmail.com , I would appreciate it for your help.