Skip to content
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

offboard_controll working in gazebo, not on pixhawk 4 #117

Open
b0hne opened this issue Oct 12, 2021 · 10 comments
Open

offboard_controll working in gazebo, not on pixhawk 4 #117

b0hne opened this issue Oct 12, 2021 · 10 comments

Comments

@b0hne
Copy link

b0hne commented Oct 12, 2021

Hi,
I am trying to get the offboard example running on a pixhawk 4 using a nanopi neo 3 as companion computer. The micrortps_bridge is working via the usb port and topics can be echoed.
The whole setup works in gazebo, but not on the actual board.
I noticed that the published timestamps are not in world time, but only count from system start. timesync does not publish anything, so offboard_example publishes timestamp 0. I tried using system time and the timestamp of "fmu/vehicle_status/out". but it dosn't have any effect.
Is there a working drone project i could have a look at to see where i went wrong?

@sstroobants
Copy link

Hi, I seem to be having the same issues. Did you manage to figure this out?
I also see that topics like vehicle_visual_odometry do not show up on uORB...

@sstroobants
Copy link

I'd like to add to this that this keeps happening to me. The issue seems to be that for some reason the timesync RTPS topic is not starting with the microRTPS client. (When I do the same with simulation, it does start).
I am trying to find out where and when this topic should be started, but no luck so far.
I also cannot find anything about this in de documentation sadly.

@sstroobants
Copy link

I see that if I stop all mavlink with mavlink stop-all before connecting the rtps bridge, the timesync does get published.
Why can this be the case? And is there a way to make sure that this is not necessary, because I would prefer to still be using QGroundControl while controlling the drone from an offboard computer.

@b0hne
Copy link
Author

b0hne commented Dec 7, 2021

I haven't pursued this further, ill check out your hotfix to see if i can continue my project until this if fixed. Thanks for the update.
What flight controller are you using? I ordered a pixhwk mini to see if it has the same problem.

@sstroobants
Copy link

I have tried it on both a kakute f7 and a pixhawk mini, so I am afraid you will encounter the same thing there...

@b0hne
Copy link
Author

b0hne commented Dec 7, 2021

Ok, thanks for the heads up.

@sstroobants
Copy link

No problem! For now I think I will use this workaround and dive deeper in the reason it happens when I have a bit more time. It seems like we have a similar goal in mind with the hardware/software set-up so let me know if we can share some more info to help each other out.

@srgbsv
Copy link

srgbsv commented Mar 20, 2022

Hello. I have the similar issue. I have connected px4 board to jetson nano via UART port (/dev/ttyTHS1). When I start micrortps_bridge, I receive sensor data from px4 but I can't send message to px4 board. micrortps_agent show, that packet was sended, but client show 0 received packets. And timesync/out topic not working too. Then I disabled mavlink on TELEM1 port (MAV_0_MODE set to 0), and then all worked fine. I connected PX4 board to jetson nano by USB and, use /dev/ttyACM0 for controll by QGroundControll.

P.S. I have two boards: Holybro PX4 and Cube Orange. The same issue on both.

@TedObrien
Copy link

Hi @srgbsv, I seem to be having exactly the same issue as well (timesync/out not working but vehicle_odometry/out publishing data, client saying nothing received even though agent says sent...). I tried disabling MAV_0_CONFIG and MAV_0_MODE to 0 however timesync/out is still not publishing. Did you assign RTPS_CONFIG to a telemetry port or start the client manually? Or did you manage to find another solution?
Any help appreciated

Many Thanks!

@littlefred117
Copy link

Hi, I am trying to do off board control on a Px4 using a Jetson Nano. I want to connect it using QGroundControl and Pymavlink, however I am unsure how to do this (not using ROS). Does someone have experience doing this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants