getting data from telem2 to computer
Hi,
I am just trying to get all sensor data from Pixhawk using PX4 firmware from telem2 port to computer.
I set SYS_COMPANION 57600
and
when I launch, my command is roslaunch mavros px4.launch fcu_url:="/dev/ttyUSB0:57600"
.
I don't see any message coming through when I do, for example rostopic echo /mavros/imu/data
.
Am I missing something to make this work? I looked a lot of places online and it seems like other people can do this no problem, but no one really explains the process in detail. I am using ROS kinetic and mav_ros in kinetic as well. I would really appreciate if someone can guide me further !
UPDATE
I used to use 5V to telem2 port to power on and use UART at the same time (assuming that UART is tolerant to 5V because I read it from somewhere online). However, I just realized that 5V didn't work for the UART of the telem2 port. It has to be 3.3V connected to telem2 port and power to turn on Pixhawk needs to come to different port. I spent several hours to make this work and hopefully this saves some of your time.
Try to connect QGC to this port (ttyUSB0). Did you reboot after parameter change?
Thanks vooon, I figured out what I was doing wrong.
@majiccjae I do not know if this message will reach you but I am trying to connect Telem2 thru & USB2Serial, and I noticed that there is no communication between the pixhawk2.1 and my computer - and the wiring is good (GND tx rx). Can you explain what you did to make it working? thank you
@fabriceN My solution was what is on "UPDATE" and I am not too sure what is going on with "pixhawk2.1".