-
Notifications
You must be signed in to change notification settings - Fork 13.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
crazyflie 2.0 cannot get local position from mavros #9291
Comments
Are you able to echo the topics as well as see them in QGC at the same time? |
Did you connect the crazyflie with a USB cable to your PC as well? or just via crazyradio? |
cfbridge starts mavlink in "osd" mode, see here. However, osd mode of mavlink does not publish/stream LOCAL_POSITION_NED as configured here But if you connect to QGC via USB cable, rather than cfbridge and radio, the USB connection uses config mode of mavlink which streams LOCAL_POSITION_NED see here Try streaming LOCAL_POSITION_NED in osd mode i.e. here |
@barzanisar: thank you for your reply. I have updated the mavlink option allowing to stream the LOCAL_POSITION_NED. Just my curiosity, are you also using crazyflie 2.0 for an indoor project? |
➤ Barza Nisar commented: yes I am. |
➤ Barza Nisar commented: Also, were you able to echo the topic as well as use QGC at the same time? Or echoing stops when you switch on QGC? |
Yes, I am able to echo the topic now, and I can do both (echoing and QGC) at the same time. Are you using offboard mode to fly the drone indoor? |
No, I am using other modes for now. I might use offboard later on. Why? I was not able to echo the topic as well as use QGC at the same time. Which cfbridge are you using? C based or python script? and do you launch mavros listening to the same udp port as QGC? i.e. 14550 |
Hi @barzanisar, However, I'm getting some difficulties in running offboard mode. The offboard mode requires publishing the target NED position every 20 milliseconds but the drone sometimes disconnects with the radio dongle for more than 20 milliseconds which makes the drone escape the offboard mode and be out of control. |
Hi @vuanhduy,
Let me know if any of these suggestions work. |
Question
Hi all,
I am following the instruction from https://docs.px4.io/en/flight_controller/crazyflie2.html and successfully installed px4 firmware onto my Crazyflie 2.0.
I can also run
cfbrigde
(both C and python versions) application andmavros
to communicate with the drone. I have checked the/diagnostics
topic and can retrieve data from/mavros/imu/data
, /mavros/battery
,/mavros/altitude
and/mavlink/from
topics via therostopic echo
command.I updated the drone's parameters to be able to get local information via motion capture system (EKF2_AID_MASK = 24, EKF2_HGT_MOD = vision) and setup the VRPN to transfer data from my optitrack system onto the drone.
After publishing data to
/mavros/vision_pose/pose
topic, I can only obtain the local position via Mavnlink Inspection feature of the QGroundControl (i.e., theLOCAL_POSITION_NED
section correctly shows the information) but I cannot get it byrostopic echo /mavros/local_position/pose
command. Why?@dennisss, @barzanisar: I see that both of you also work with the crazyflie so could you give any suggestion?
The text was updated successfully, but these errors were encountered: