Servers by jDrones

Connecting to TX2

Hey!

I have been trying to get my Jetson TX2 (dev edition) to connect to the Pixhawk for about 2 days now with no luck. This documentation didn’t really help to much.

http://ardupilot.org/dev/docs/companion-computer-nvidia-tx1.html

At this point I have all the software installed on the TX2 for mavlink, mavproxy, etc. and it is running Jetpack 3.1. I have tried both connecting the GPIO pins to the designated UARTs and using a USB cable with no luck. I have also tested with the Pi3 and that works, so the Pixhawk is sending the data.

Does anyone have a good way of getting these two to talk to each other?

Thanks!

Does anyone have a good way of getting these two to talk to each other?

You probably need to disable to console - which is done a little
differentiy on the more recent JetPacks.

I don’t have a TX2 - just a TX1, however.

What do you mean disable to console?

Does anyone have an answer to this? I have a TX2 (dev kit + dev board) and am trying to connect my Pixhawk 4 to it. I’m also using a ZED Stereo Camera for Computer Vision (this is connected and works perfectly with my TX2, but I want to use this camera for shoreline detection and subsequently provide data to my Pixhawk for object avoidance). Any advice?

If you want to connect the Jetson TX2 as a companion computer, physically to the Pixhawk (not through Wi-Fi for ex), you can follow my configuration for example :

  • Using a FTDI device : Plug it on one side like a USB to the Jetson Board and on the other side like UART wires to the Pixhawk (to TELEM2 port)
  • Then, you can use ROS (with Mavros) or dronekit to communicate to the Pixhawk

Like this (here, I have a LI-TX1-CB board, which has only a microUSB) :
image

The only thing, important, DO NOT PLUG the 5v between the two components.

1 Like

If I’m already occupying TELEM 1 and TELEM 2 with my RC receiver (X8R) and the GCS Telemetry Antenna, respectively, would there be any other pinouts on my Pixhawk 4 that I can connect my TX2 board into??

Thank you for your extremely fast and insightful response with diagrams. It’s very much appreciated!

Not to my knowledge. But you have some solutions, depends on your application :

  • In my case, I use the S.Bus system for the RC receiver. It needs only 3 wires, fully compatible with the X8R : http://ardupilot.org/copter/docs/common-pixhawk-and-px4-compatible-rc-transmitter-and-receiver-systems.html. Like this, you can free your TELEM port.
  • You can replace the GCS Antenna for the Jetson. If you have a Wi-Fi in the area, the companion computer can be connected to it. Then connect your GCS to the same network, select UDP or TCP communication with the right IP, and voilà, your GCS is communicating to your Pixhawk through the companion computer (I only tried and succeed with mavros in this case).

In my configuration, I use both.

1 Like

Okay, got it. I will cut the red power wire for the UART connection coming from the FTDI and shield it with heat-shrink or electrical tape.

That is an excellent solution. However, in my use-case I am attempting to build an ASV that is self-reliant in GPS-denied environments. My plan is to use CV with a ZED Stereo Camera and CUDA/VisionWorks libraries for shoreline detection. I have no need to store the video, but I do want to relay pre-defined critical data (i.e. a shoreline feature) to the Pixhawk 4 to use in it’s object avoidance capabilities in order to stay a minimum distance away from the shore.

Instead of using a pre-planned “Mission” mode in QGroundControl, I want to customize one where I flash the PX4 firmware and my Pixhawk 4 pre-defines it’s own waypoints using it’s own IMU module (and perhaps the ZED Stereo Camera’s 6-DOF IMU as well) and detection of a shoreline (given that the boat is oriented by the user from the start in such a way that the shoreline is already on one side or the other).

Any advice/guidance/tips?

SLAM method can be use for pose. But you need the Jetson to be onboard, to have a good and trustly frequency.

I think you have already seen it : Object Avoidance with ZED 3D Camera

I do not have special tips, sorry. Good luck ! :slight_smile:

1 Like

Yes the Jetson will be onboard.

I appreciate all your advice, @KiloNovemberDelta!

If anyone else wants to carry the discussion, please feel free!

@KiloNovemberDelta, any insight on resources I could use for HITL &/or SITL for my ASV? I know Gazebo is popular, but can it be used for a boat-drone?

I’m used to use Gazebo for Copter, not for boat. I only know this project for boat in Gazebo : https://github.com/disaster-robotics-proalertas/usv_sim_lsa/tree/develDocs

The apparence is easy, the physics behind is less easy. I haven’t tried it, so not sure at all it can work. For SITL integration, in theory you can do it, but idk if ArduPilot already developed it. If not, I recommand to follow the example for Copter, and try to apply what they have done but for boat. It can be a long road…

1 Like
Servers by jDrones