nayan-dev / nayan-devguide

Nayan Development Guide
https://nayan-dev.gitbooks.io/nayan-devguide/
0 stars 1 forks source link

Connecting Vehicle to QGC/MavROS using telemetry #4

Open madhubabuv opened 7 years ago

madhubabuv commented 7 years ago

I am trying to connect the vehicle to QGC through telemetry module provided by you, its showing error with "baudrate mismatch" and when I connect to vehicle from Comm Links it is throwing an error message like " Error on link /dev/ttyUSB0. Error connecting: Could not create port. Permission error while locking the device ".

I have tried giving permission to usb port using "sudo chmod a+wr /dev/ttyUSB0" (in my case it is ttyUSB0), and i restarted the system,restarted QGC still it didn't work.

The same is happening with Mavros also when I am launching the px4.launch like roslaunch mavros px4.launch fcu_url:="/dev/ttyUSB0:57600", it is showing like

... logging to /home/madhu/.ros/log/2621c128-1e86-11e7-91c9-f0d5bfd38a9c/roslaunch-01hw1026409-12593.log Checking log directory for disk usage. This may take awhile. Press Ctrl-C to interrupt Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://01hw1026409:37236/

SUMMARY

CLEAR PARAMETERS

PARAMETERS

NODES / mavros (mavros/mavros_node)

auto-starting new master process[master]: started with pid [12605] ROS_MASTER_URI=http://localhost:11311

setting /run_id to 2621c128-1e86-11e7-91c9-f0d5bfd38a9c process[rosout-1]: started with pid [12618] started core service [/rosout] process[mavros-2]: started with pid [12636] [ INFO] [1491894717.899179121]: FCU URL: /dev/ttyUSB0:57600 [ WARN] [1491894717.899903222]: init: message from ASLUAV, MSG-ID 201 ignored! Table has different entry. [ WARN] [1491894717.900047196]: init: message from autoquad, MSG-ID 150 ignored! Table has different entry. [ WARN] [1491894717.900060609]: init: message from autoquad, MSG-ID 152 ignored! Table has different entry. [ WARN] [1491894717.900203290]: init: message from matrixpilot, MSG-ID 150 ignored! Table has different entry. [ WARN] [1491894717.900215449]: init: message from matrixpilot, MSG-ID 151 ignored! Table has different entry. [ WARN] [1491894717.900229192]: init: message from matrixpilot, MSG-ID 152 ignored! Table has different entry. [ WARN] [1491894717.900244428]: init: message from matrixpilot, MSG-ID 153 ignored! Table has different entry. [ WARN] [1491894717.900259870]: init: message from matrixpilot, MSG-ID 155 ignored! Table has different entry. [ WARN] [1491894717.900273677]: init: message from matrixpilot, MSG-ID 156 ignored! Table has different entry. [ WARN] [1491894717.900286034]: init: message from matrixpilot, MSG-ID 157 ignored! Table has different entry. [ WARN] [1491894717.900295974]: init: message from matrixpilot, MSG-ID 158 ignored! Table has different entry. [ WARN] [1491894717.900307083]: init: message from matrixpilot, MSG-ID 170 ignored! Table has different entry. [ WARN] [1491894717.900316910]: init: message from matrixpilot, MSG-ID 171 ignored! Table has different entry. [ WARN] [1491894717.900340347]: init: message from matrixpilot, MSG-ID 172 ignored! Table has different entry. [ WARN] [1491894717.900350708]: init: message from matrixpilot, MSG-ID 173 ignored! Table has different entry. [ WARN] [1491894717.900360359]: init: message from matrixpilot, MSG-ID 174 ignored! Table has different entry. [ WARN] [1491894717.900370177]: init: message from matrixpilot, MSG-ID 175 ignored! Table has different entry. [ WARN] [1491894717.900381329]: init: message from matrixpilot, MSG-ID 176 ignored! Table has different entry. [ WARN] [1491894717.900392027]: init: message from matrixpilot, MSG-ID 177 ignored! Table has different entry. [ WARN] [1491894717.900401373]: init: message from matrixpilot, MSG-ID 178 ignored! Table has different entry. [ WARN] [1491894717.900410824]: init: message from matrixpilot, MSG-ID 179 ignored! Table has different entry. [ WARN] [1491894717.900420608]: init: message from matrixpilot, MSG-ID 180 ignored! Table has different entry. [ WARN] [1491894717.900432087]: init: message from matrixpilot, MSG-ID 181 ignored! Table has different entry. [ WARN] [1491894717.900441486]: init: message from matrixpilot, MSG-ID 182 ignored! Table has different entry. [ WARN] [1491894717.900450755]: init: message from matrixpilot, MSG-ID 183 ignored! Table has different entry. [ WARN] [1491894717.900460389]: init: message from matrixpilot, MSG-ID 184 ignored! Table has different entry. [ WARN] [1491894717.900472538]: init: message from matrixpilot, MSG-ID 185 ignored! Table has different entry. [ WARN] [1491894717.900482241]: init: message from matrixpilot, MSG-ID 186 ignored! Table has different entry. [ WARN] [1491894717.900613788]: init: message from paparazzi, MSG-ID 180 ignored! Table has different entry. [ WARN] [1491894717.900625355]: init: message from paparazzi, MSG-ID 181 ignored! Table has different entry. [ WARN] [1491894717.900636883]: init: message from paparazzi, MSG-ID 182 ignored! Table has different entry. [ WARN] [1491894717.900646307]: init: message from paparazzi, MSG-ID 183 ignored! Table has different entry. [ WARN] [1491894717.900672394]: init: message from paparazzi, MSG-ID 184 ignored! Table has different entry. [ WARN] [1491894717.900795107]: init: message from slugs, MSG-ID 170 ignored! Table has different entry. [ WARN] [1491894717.900806043]: init: message from slugs, MSG-ID 172 ignored! Table has different entry. [ WARN] [1491894717.900816977]: init: message from slugs, MSG-ID 173 ignored! Table has different entry. [ WARN] [1491894717.900826299]: init: message from slugs, MSG-ID 176 ignored! Table has different entry. [ WARN] [1491894717.900837427]: init: message from slugs, MSG-ID 177 ignored! Table has different entry. [ WARN] [1491894717.900848488]: init: message from slugs, MSG-ID 179 ignored! Table has different entry. [ WARN] [1491894717.900857716]: init: message from slugs, MSG-ID 180 ignored! Table has different entry. [ WARN] [1491894717.900868316]: init: message from slugs, MSG-ID 181 ignored! Table has different entry. [ WARN] [1491894717.900879125]: init: message from slugs, MSG-ID 184 ignored! Table has different entry. [ WARN] [1491894717.900888627]: init: message from slugs, MSG-ID 185 ignored! Table has different entry. [ WARN] [1491894717.900899243]: init: message from slugs, MSG-ID 186 ignored! Table has different entry. [ WARN] [1491894717.900910242]: init: message from slugs, MSG-ID 188 ignored! Table has different entry. [ WARN] [1491894717.900921589]: init: message from slugs, MSG-ID 191 ignored! Table has different entry. [ WARN] [1491894717.900931403]: init: message from slugs, MSG-ID 192 ignored! Table has different entry. [ WARN] [1491894717.900942104]: init: message from slugs, MSG-ID 193 ignored! Table has different entry. [ WARN] [1491894717.900952967]: init: message from slugs, MSG-ID 194 ignored! Table has different entry. [ INFO] [1491894717.901301229]: serial0: device: /dev/ttyUSB0 @ 57600 bps [ INFO] [1491894717.902067005]: GCS bridge disabled [ INFO] [1491894717.930141251]: Plugin 3dr_radio loaded [ INFO] [1491894717.932500104]: Plugin 3dr_radio initialized [ INFO] [1491894717.932643056]: Plugin actuator_control loaded [ INFO] [1491894717.935447861]: Plugin actuator_control initialized [ INFO] [1491894717.935566592]: Plugin altitude loaded [ INFO] [1491894717.936681634]: Plugin altitude initialized [ INFO] [1491894717.957714062]: Plugin cam_imu_sync loaded [ INFO] [1491894717.958785646]: Plugin cam_imu_sync initialized [ INFO] [1491894717.959725582]: Plugin command loaded [ INFO] [1491894717.966378320]: Plugin command initialized [ INFO] [1491894717.966425741]: Plugin distance_sensor blacklisted [ INFO] [1491894717.966606801]: Plugin ftp loaded [ INFO] [1491894717.974938810]: Plugin ftp initialized [ INFO] [1491894717.975099866]: Plugin global_position loaded [ INFO] [1491894717.982200331]: Plugin global_position initialized [ INFO] [1491894717.982355324]: Plugin hil_actuator_controls loaded [ INFO] [1491894717.983123968]: Plugin hil_actuator_controls initialized [ INFO] [1491894717.983253968]: Plugin hil_controls loaded [ INFO] [1491894717.983940034]: Plugin hil_controls initialized [ INFO] [1491894717.984085117]: Plugin imu_pub loaded [ INFO] [1491894717.991455976]: Plugin imu_pub initialized [ INFO] [1491894717.991688350]: Plugin local_position loaded [ INFO] [1491894717.998479268]: Plugin local_position initialized [ INFO] [1491894717.998648548]: Plugin manual_control loaded [ INFO] [1491894717.999325729]: Plugin manual_control initialized [ INFO] [1491894717.999436455]: Plugin mocap_fake_gps loaded [ INFO] [1491894718.002032206]: Plugin mocap_fake_gps initialized [ INFO] [1491894718.002144309]: Plugin mocap_pose_estimate loaded [ INFO] [1491894718.006293932]: Plugin mocap_pose_estimate initialized [ INFO] [1491894718.006523638]: Plugin param loaded [ INFO] [1491894718.009343072]: Plugin param initialized [ INFO] [1491894718.009474832]: Plugin px4flow loaded [ INFO] [1491894718.014654881]: Plugin px4flow initialized [ INFO] [1491894718.014846952]: Plugin rc_io loaded [ INFO] [1491894718.018874975]: Plugin rc_io initialized [ INFO] [1491894718.018903020]: Plugin safety_area blacklisted [ INFO] [1491894718.019041110]: Plugin setpoint_accel loaded [ INFO] [1491894718.022432922]: Plugin setpoint_accel initialized [ INFO] [1491894718.022586774]: Plugin setpoint_attitude loaded [ INFO] [1491894718.035558573]: Plugin setpoint_attitude initialized [ INFO] [1491894718.035727525]: Plugin setpoint_position loaded [ INFO] [1491894718.040810273]: Plugin setpoint_position initialized [ INFO] [1491894718.040965900]: Plugin setpoint_raw loaded [ INFO] [1491894718.049540823]: Plugin setpoint_raw initialized [ INFO] [1491894718.049687800]: Plugin setpoint_velocity loaded [ INFO] [1491894718.052007547]: Plugin setpoint_velocity initialized [ INFO] [1491894718.052254468]: Plugin sys_status loaded [ INFO] [1491894718.059609251]: Plugin sys_status initialized [ INFO] [1491894718.059796239]: Plugin sys_time loaded [ INFO] [1491894718.063267506]: Plugin sys_time initialized [ INFO] [1491894718.063423498]: Plugin vfr_hud loaded [ INFO] [1491894718.064758587]: Plugin vfr_hud initialized [ INFO] [1491894718.064784617]: Plugin vibration blacklisted [ INFO] [1491894718.064913614]: Plugin vision_pose_estimate loaded [ INFO] [1491894718.072372635]: Plugin vision_pose_estimate initialized [ INFO] [1491894718.072530488]: Plugin vision_speed_estimate loaded [ INFO] [1491894718.075493360]: Plugin vision_speed_estimate initialized [ INFO] [1491894718.075652719]: Plugin waypoint loaded [ INFO] [1491894718.079792069]: Plugin waypoint initialized [ INFO] [1491894718.079847965]: Autostarting mavlink via USB on PX4 [ INFO] [1491894718.079968497]: Built-in SIMD instructions: SSE, SSE2 [ INFO] [1491894718.079989125]: Built-in MAVLink package version: 2017.2.7 [ INFO] [1491894718.080015017]: Known MAVLink dialects: common ardupilotmega ASLUAV autoquad matrixpilot paparazzi slugs standard uAvionix ualberta [ INFO] [1491894718.080034746]: MAVROS started. MY ID 1.240, TARGET ID 1.1

It's not showing like any imu connected and I checked the state with state topic its showing not connected. Please help in this regard.

Thank you in advance

bugobliterator commented 7 years ago

The baudrate for Telem is 115200. There is a bug in QGC where it tries to auto connect with serial ports with 57600 baud and doesn't disconnect when demanded to connect with different baud. To circumvent this issue, you can go Comm Link on QGC and manually add device and disconnect and connect telem while pressing Connect on the Comm Link page.