Comments (9)
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.
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.
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.
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.
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.
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.
from mrs_uav_system.
This is much clearer now. Thank you very much !
from mrs_uav_system.
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.
Thank you!
from mrs_uav_system.
Related Issues (20)
- [DOUBT] Why are the ROS packages linked externally and not directly placed within the workspace? HOT 2
- Allow (again) to see and set non-ctu controllers and tracker in mrs_uav_status windowπ HOT 2
- Troubles running Rviz after installing the mrs_uav_systemπ HOT 13
- Update px4_firmware to 1.12.3. HOT 3
- Collision avoidance uses gps_origin even when rtk_origin is available. HOT 3
- MRS Bumper does not work well with complex trajectories.
- π Simulation does not start, PX4 crashes HOT 1
- π Backward incompatibility: we are no longer bulding with -march=native, please README
- π Backward incompatibility: `mrs_lib::Transformer` API changes, please README
- gzserver: symbol lookup error HOT 2
- ROS2 version HOT 7
- π Backward incompatibility: Updates for px4 firmware v1.13.2 HOT 8
- π Lockstep is not working as it should in the new version of the simulation. HOT 1
- π Calling rosdep init fails HOT 1
- Is there a easy way to implement a simulation environment with mrs? HOT 2
- π Towards the MRS UAV System 1.5 - please help updating the documentation
- Update README.md
- π Error installation via stable PPA HOT 1
- URGENT: How to completely remove mrs system full? HOT 2
- π Installtion error on Ubunto 20.04 ROS Noetic HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mrs_uav_system.