Closed onyezem96 closed 6 years ago
Did you able to connect with QGC/APM Planner via /dev/ttyACM0? Maybe it need some setup.
Yes I did. When I try to run both however I get a new error saying
[FATAL] [1519661387.212448533]: FCU: DeviceError:serial:open: Device or resource busy REQUIRED process [mavros-2] has died! process has finished cleanly log file: /home/michael/.ros/log/76baae2a-1b0f-11e8-91a5-d0577b40b3a2/mavros-2*.log Initiating shutdown!
You cannot connect them at the same time. If the serial is open to a port, cannot be reserved accessed by another,
Ok I did not know that. I do not need to use apm planner to use this code initially however right?
@onyezem96,
I connect to both FCU and GCS(ground control station) by launching mavros apm.launch like this:
$ roslaunch mavros apm.launch fcu_url:=udp://10.0.0.2:6001@ gcs_url:=tcp-l://
I first launch mavros, then FCU and after that I open the APM Planner. You can also add these to corresponding ros launch file. Hope this helps.
It helped a bit. It made me realize that my baud rate was set too low. It worked with 115200 and not 57600 for some reason.
You cannot have QGC to automatically connect to the FCU. Go to QGC settings and disable the option to connect to the Pixhawk and the SiK Radio. And launch: rosrun mavros mavros_node _fcu_url:=/dev/ttyACM0:921600 _gcs_url:=udp-b://127.0.0.1:14555@14550 This works for me.
I have been unable to run the offboard code found here for my APM. I know that APMs and PX4 have different modes so I have changed some of the code to account for that but still no success. I think the apm still cannot connect to the FCU connection. Also pardon my formatting, this is my first time creating an issue and i am a novice programmer.
MAVROS version and platform
Mavros: i'm not sure ROS: Kinetic Ubuntu: 16.04
Autopilot type and version
[ X ] ArduPilot [ ] PX4
Version: ?3.7.1?i'm not sure
Node logs
Diagnostics
Check ID
My Code