Coder Social home page Coder Social logo

Comments (6)

lucasdemarchi avatar lucasdemarchi commented on September 25, 2024

Apparently baudrate for usb0 are not matching. Try to simplify your setup to check for problems in each part. You can remove macros for tests purpose and add the endpoint to mavlink-router

from mavlink-router.

mzahana avatar mzahana commented on September 25, 2024

USB0 is used by mavros. But USB1 is for the telem and used by mavlink-router. Also, the connection is established to QGC and I can see the HUD. However, there is a noticeable delay. For example, if I move the drone, the HUD takes some time to reflect.

What macros are you referring to?

from mavlink-router.

zehortigoza avatar zehortigoza commented on September 25, 2024

Run mavlink-router with reports(-r) and paste here please but my guess it that the stream rate is too high for the 3DR telemetry module running at 57000bps, so several messages are not complete written to UART TX buffer and not transmitted.

from mavlink-router.

lucasdemarchi avatar lucasdemarchi commented on September 25, 2024

I meant mavros. You have 921600 baud to talk to pixhawk but only 57600 to send to QGC. If you have enough data going through the first link it will obviously not fit the speed of the second one. It will be buffered by mavlink-router until the buffer isn't big enough anymore and then you will start seeing message drops.

The way to get this working is to request different stream rate for the messages you are interested in and then create filtering capability in mavlink-router so you don't send those messages through the slow link. It'd be a good contribution.

What I said about mavros is that from your description you actually don't need it. And if you need it (e.g. you are using Ros nodes on Aero), it'd be better if you connect mavros to mavlink-router, not the other way around.

from mavlink-router.

mzahana avatar mzahana commented on September 25, 2024

Yes. I am using ROS. I need mavros fo communicate with pixhawk and I have another note that communicates with both mavros and with ground station. Also I need long range link so wifi is not my best option. This is why I am using 3DR telemetry but will shift to RFD900 soon.

Now what you mentioned about connecting mavros to mavlink-router, you mean

  1. mavlink-router connects to pixhawk and routes to a udp
  2. Mavros connects to udp and bridges to QGC via telem module?

from mavlink-router.

mzahana avatar mzahana commented on September 25, 2024

So I got this working with the following setup.

  1. Mavlink-router connects directly to Pixhawk using the serial link 57600 and routes this to two ends. One is a udp to communicate with mavros. The other ends is to another serial link which is the telemetry to QGC.

from mavlink-router.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.