Git Product home page Git Product logo

Comments (9)

DanHert avatar DanHert commented on May 24, 2024 1

Hmmm, looking at the picture on our wiki, I notice there is something very wrong with the TELEM2 connector.
The correct connections should be:
PX4 GND -> FTDI GND
PX4 TXD -> FTDI RXD
PX4 RXD -> FTDI TXD
That is all you need.
For some reason the cable in the picture is flipped, I will fix it, thanks for noticing.

from mrs_uav_system.

DanHert avatar DanHert commented on May 24, 2024

Before flying autonomously, try to fly manually to test if the drone itself is configured corretly.

Hi, for a normal flight with GPS, use this script - https://github.com/ctu-mrs/uav_core/blob/master/tmux_scripts/just_flying.sh
But you need to setup the proper config in your .bashrc. Especially important are the UAV_MASS, RUN_TYPE (uav) and UAV_TYPE (f450). Once you start the script, check all the tabs if something crashed. Then you can go to the mrs_status tab, to see if everyting is fine. You should see data in the Mavros and Odometry windows (they should be green) and GPS should be present. If you have all of these, you can fly.

from mrs_uav_system.

ZakariaLaakel avatar ZakariaLaakel commented on May 24, 2024

Hi Dan,

thank you for your answer. I tried to setup ROS on the NUC according to the steps mentioned in https://ctu-mrs.github.io/docs/hardware/px4_configuration.html but I got some problems:

  • My PixHawk 4 is not seen as a /dev/ttyUSB0 or /dev/pixhawk device, but /dev/ttyACM0. I tried different USB ports and they all gave me the same name. Is there a way to complete the setup with this name? I changed a part of the first line of the mavros_uav.launch file from

    "fcu_url" default="/dev/pixhawk:921600" /

to

"fcu_url" default="/dev/ttyACM0:921600" /

but I don't know if I have to make changes in other launch files.

  • When I launch the just_flying.sh script, am I still supposed to see green tabs on mavros and/or Odom if I have a Pixhawk device with nothing connected to it other than the USB connection between the NUC and the Pixhawk 4.

  • How is your connection between the NUC, PixHawk 4 and the battery? The connection between the battery and the PixHawk 4 is straightforward, but when the NUC is included it doesn't look straightforward anymore. Do you only have 1 battery that feeds both of them?

Thank you in advance!

from mrs_uav_system.

DanHert avatar DanHert commented on May 24, 2024

Hello, it does not matter if it is seen as /dev/whatever, just remap it with udev rules to /dev/pixhawk.
Run the command: (replace the /dev/ttyUSB0 with /dev/ttyACM0 or whatever it is connected as)
udevadm info -p $(udevadm info -q path -n /dev/ttyUSB0) | grep 'SERIAL_SHORT\|VENDOR_ID\|MODEL_ID'
and then follow the px4 configuration guide. After you setup the udev rule, just unplug and replug the serial to USB convertor to the computer and you should see /dev/pixhawk connected.

As for the power for the NUC, the NUC usually has an input range of 12V-19V (some models are different), so with a 4S battery you can power the NUC directly. On some drones we use 6S batteries, so a powerful step down converter is used for NUC power.

Sorry for the delayed answer, Dan H.

from mrs_uav_system.

ZakariaLaakel avatar ZakariaLaakel commented on May 24, 2024

Hello Dan, the configuration is done correctly, thank you very much. I had 2 more questions regarding the battery:

-You say that you are using a 4S battery to power the NUC. Is it the same battery that powers the other components of the drone? Or are you using 2 4S battery per drone?

  • How do you connect that battery to the NUC? Can you maybe show a picture of how you've done it? At the moment we have the entire NUC device in its shield, do we have to dismount it and only keep the board that is inside it?

Kind regards,

Zakaria

from mrs_uav_system.

DanHert avatar DanHert commented on May 24, 2024

Hello, the NUC is connected to the same battery which powers the UAV, so we have only one 4S battery. The NUC can take a DC voltage between 12-19 V, so it can be powered straight from the battery, without any convertors. Therefore we simply connect the nuc directly to the battery by soldering its power cable to the distribution board. We also remove the NUC from its box to save weight.

IMG_20210127_092612

from mrs_uav_system.

ZakariaLaakel avatar ZakariaLaakel commented on May 24, 2024

This is much clearer now. Thank you very much !

from mrs_uav_system.

ZakariaLaakel avatar ZakariaLaakel commented on May 24, 2024

Hello, sorry I had one last question concerning this topic: When you connect the PixHawk 4 to the NUC through the telem2 port and using this FTDI clone board https://fr.aliexpress.com/item/4001323460121.html?spm=a2g0o.productlist.0.0.7b83e8dcbCXILT&algo_pvid=1c2070da-7f8f-47ad-a8a0-83f3b4ca9cb6&algo_expid=1c2070da-7f8f-47ad-a8a0-83f3b4ca9cb6-5&btsid=2100bdd016034491508824193e00b8&ws_ab_test=searchweb0_0,searchweb201602_,searchweb201603.

I see on the pictures of the PX4 configuration section that you do not use all the pins of the telem2 port. From what I can see I deduct you did the following:

  • Connecting the first pin of telem2 ( VCC pin) with the VCC pin of the FTDI board;

  • Connecting the 4th pin of telem2 (CTS pin) with the DTR pin of the FTDI board;

  • Connecting the 5th pin of telem2 (RTS pin) with the CTS pin of the FTDI board;

  • The 2nd (TX), 3rd (RX) and 6th (GND) pin are left unconnected.

Are these deductions correct?

from mrs_uav_system.

ZakariaLaakel avatar ZakariaLaakel commented on May 24, 2024

Thank you!

from mrs_uav_system.

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.