Closed lucaspenna00 closed 5 years ago
With that baud rate in that telemetry link it looks perfectly normal that you are getting the data at those rates, considering that the link rate profiles of PX4 for these kind of links are quite low. I would follow https://docs.px4.io/en/peripherals/serial_configuration.html and try to setup your link baud rate to 115200.
Dear TSC21,
Thank you for reply me.
I followed what you recommended me but I hadn't success. When I change the link baudrate to 115200, I can't access the drone via telemetry. The QGroundControl only displays: "Waiting for Vehicle Connection". I tried to follow that link you posted here and I changed these parameters (aiming to change the baudrate link):
SER_TEL1_BAUD - from "57600" to "115200" MAV_0_RATE - from "1200" to "115200" MAV_0_MODE - from "0" to "1" (normal -> custom)
If there's something wrong in this procedure, please, tell me.
Thank you very much.
Please bring this matter to PX4 Slack.
I solved this issue just changing the parameter "MAV_0_RATE" (from 1200 (default) to 57600) without change baud rate parameters. Previously I was trying to change the SER_TEL1_BAUD parameter (from 57600 to 115200) but it didn't solve the issue and the telemetry didn't work with this baud rate. Then I tested just the MAV_0_RATE and it worked well.
I solved this issue just changing the parameter "MAV_0_RATE" (from 1200 (default) to 57600) without change baud rate parameters. Previously I was trying to change the SER_TEL1_BAUD parameter (from 57600 to 115200) but it didn't solve the issue and the telemetry didn't work with this baud rate. Then I tested just the MAV_0_RATE and it worked well.
Hi, how did you go about changing the MAV_0_RATE? I've looked for it in the parameter list in Mission Planner but can't find it.
I solved this issue just changing the parameter "MAV_0_RATE" (from 1200 (default) to 57600) without change baud rate parameters. Previously I was trying to change the SER_TEL1_BAUD parameter (from 57600 to 115200) but it didn't solve the issue and the telemetry didn't work with this baud rate. Then I tested just the MAV_0_RATE and it worked well.
Hi, how did you go about changing the MAV_0_RATE? I've looked for it in the parameter list in Mission Planner but can't find it.
It depends on the PX4 version you are running. I accessed this parameter by QGroundControl. You can check the parameters here:
https://docs.px4.io/v1.9.0/en/advanced_config/parameter_reference.html
If you are not finding the parameter by QGroundControl I recommend you set this parameter by PX4 command line
For anyone who is still looking for a solution.
I wanted to increase the publishing rate of Odometry & HIGHRES_IMU messages.
Here's how I solved this problem:
1- Increase the baud rate of the serial communication by changing these PX4 parameters on QGroundControl, and then reboot the UAV.
SER_TEL1_BAUD - from "57600" to "115200"
MAV_0_RATE - from "1200" to "115200"
MAV_0_MODE - from "0" to "1" (normal -> custom)
References:
https://docs.px4.io/master/en/peripherals/serial_configuration.html#how-to-configure-a-port
https://github.com/mavlink/mavros/issues/1182#issuecomment-465672331
2- Change the rate that Mavlink publishes the ODOMETRY/ HIGHRES_IMU messages in. This can be done by writing this command on the microSD card in PX4. How?
Remove the card from Pixhawk and connect to your PC. Then go to ./fs/etc/extras.txt
If this directory (or part of it) does not exist, create it. Then, inside extras.txt, we should write:
mavlink stream -d /dev/ttyS0 -s HIGHRES_IMU -r 200
mavlink stream -d /dev/ttyS0 -s ODOMETRY -r 200
Reference: https://dev.px4.io/v1.9.0/en/concept/system_startup.html#starting-additional-applications
For completeness, here is my setup details:
Mavros: 1.4
ROS: Melodic
Ubuntu: 18.04
PX4
Version: v1.10.1
PX4_FMU_V5 (V500)
NuttX, v7.29.0
@ayhamalharbat @lucaspenna00 @TSC21 can you help me please! https://github.com/PX4/PX4-Autopilot/issues/21504
@ayhamalharbat I tried this, but it didn't work for me. Has anyone found a solution?
This is only bug and feature tracker, please use it to report bugs or request features.
Issue details
Hello everyone, I'm working on a indoor drone project and recently I noticed something bad: the topics are being updating in a very low rate (less than 1Hz) (including the topic mavros/local_position/pose that is important to control the drone on OFFBOARD mode). It's turning the flight control difficult by setposition topic because the drone doesn't know its correct altitude in real time. When I test this test algorithm (fly 1 meter and hold its position), on Gazebo Simulator, the Mavros topics are updating in a nice rate. In order to verify if the problem is the telemetry system, I tested the information update rate on QGroundControl and when I move the drone, the information are instantaneously updated. Then, I suppose the telemetry system (3DR Radio Link) is not the problem.
I'm launching mavros by this command:
roslaunch mavros px4.launch fcu_url:=/dev/ttyUSB0:57600
If there's a way to solve this problem (high latency on topic updating using telemetry) please tell me.
MAVROS version and platform
Mavros: 0.18.4 ROS: Lunar 1.13.7 Ubuntu: 16.04
Autopilot type and version
[ ] ArduPilot [X] PX4
Version: 3.7.1 (PX4FMU_V3) Pixhawk 2
Node logs
started roslaunch server http://lucas-Inspiron-7460:40689/
SUMMARY
CLEAR PARAMETERS
PARAMETERS
NODES / mavros (mavros/mavros_node)
auto-starting new master process[master]: started with pid [2541] ROS_MASTER_URI=http://localhost:11311
setting /run_id to 9a6d39f0-3495-11e9-b342-d80f99bfeedd process[rosout-1]: started with pid [2554] started core service [/rosout] process[mavros-2]: started with pid [2558] [ INFO] [1550615282.620918500]: FCU URL: /dev/ttyUSB0:57600 [ INFO] [1550615282.628097425]: serial0: device: /dev/ttyUSB0 @ 57600 bps [ INFO] [1550615282.629657172]: GCS bridge disabled [ INFO] [1550615283.005490453]: Plugin 3dr_radio loaded [ INFO] [1550615283.016262520]: Plugin 3dr_radio initialized [ INFO] [1550615283.016922684]: Plugin actuator_control loaded [ INFO] [1550615283.036063147]: Plugin actuator_control initialized [ INFO] [1550615283.180910744]: Plugin adsb loaded [ INFO] [1550615283.199508913]: Plugin adsb initialized [ INFO] [1550615283.200122246]: Plugin altitude loaded [ INFO] [1550615283.205285741]: Plugin altitude initialized [ INFO] [1550615283.205815126]: Plugin cam_imu_sync loaded [ INFO] [1550615283.209386405]: Plugin cam_imu_sync initialized [ INFO] [1550615283.210240304]: Plugin command loaded [ INFO] [1550615283.225353117]: Plugin command initialized [ INFO] [1550615283.225590836]: Plugin debug_value loaded [ INFO] [1550615283.232669245]: Plugin debug_value initialized [ INFO] [1550615283.232908823]: Plugin distance_sensor loaded [ INFO] [1550615283.253243787]: Plugin distance_sensor initialized [ INFO] [1550615283.253403903]: Plugin fake_gps loaded [ INFO] [1550615283.265462310]: Plugin fake_gps initialized [ INFO] [1550615283.265642850]: Plugin ftp loaded [ INFO] [1550615283.299905247]: Plugin ftp initialized [ INFO] [1550615283.300239115]: Plugin global_position loaded [ INFO] [1550615283.321240791]: Plugin global_position initialized [ INFO] [1550615283.321408172]: Plugin hil loaded [ INFO] [1550615283.333517994]: Plugin hil initialized [ INFO] [1550615283.333663254]: Plugin home_position loaded [ INFO] [1550615283.337023981]: Plugin home_position initialized [ INFO] [1550615283.337177924]: Plugin imu loaded [ INFO] [1550615283.343122555]: Plugin imu initialized [ INFO] [1550615283.343296148]: Plugin local_position loaded [ INFO] [1550615283.348493766]: Plugin local_position initialized [ INFO] [1550615283.348663249]: Plugin manual_control loaded [ INFO] [1550615283.351450564]: Plugin manual_control initialized [ INFO] [1550615283.351582959]: Plugin mocap_pose_estimate loaded [ INFO] [1550615283.355063800]: Plugin mocap_pose_estimate initialized [ INFO] [1550615283.355195144]: Plugin obstacle_distance loaded [ INFO] [1550615283.357456969]: Plugin obstacle_distance initialized [ INFO] [1550615283.357587687]: Plugin odom loaded [ INFO] [1550615283.361565989]: Plugin odom initialized [ INFO] [1550615283.361806653]: Plugin param loaded [ INFO] [1550615283.364534712]: Plugin param initialized [ INFO] [1550615283.364671532]: Plugin px4flow loaded [ INFO] [1550615283.369073140]: Plugin px4flow initialized [ INFO] [1550615283.369111163]: Plugin rangefinder blacklisted [ INFO] [1550615283.369312682]: Plugin rc_io loaded [ INFO] [1550615283.372972026]: Plugin rc_io initialized [ INFO] [1550615283.373003278]: Plugin safety_area blacklisted [ INFO] [1550615283.373167387]: Plugin setpoint_accel loaded [ INFO] [1550615283.376406691]: Plugin setpoint_accel initialized [ INFO] [1550615283.377400233]: Plugin setpoint_attitude loaded [ INFO] [1550615283.389351446]: Plugin setpoint_attitude initialized [ INFO] [1550615283.389534840]: Plugin setpoint_position loaded [ INFO] [1550615283.402243938]: Plugin setpoint_position initialized [ INFO] [1550615283.402416765]: Plugin setpoint_raw loaded [ INFO] [1550615283.411808900]: Plugin setpoint_raw initialized [ INFO] [1550615283.411964755]: Plugin setpoint_velocity loaded [ INFO] [1550615283.422231223]: Plugin setpoint_velocity initialized [ INFO] [1550615283.422505372]: Plugin sys_status loaded [ INFO] [1550615283.432547532]: Plugin sys_status initialized [ INFO] [1550615283.432719677]: Plugin sys_time loaded [ INFO] [1550615283.436368915]: TM: Timesync mode: MAVLINK [ INFO] [1550615283.437101900]: Plugin sys_time initialized [ INFO] [1550615283.437253132]: Plugin vfr_hud loaded [ INFO] [1550615283.439465587]: Plugin vfr_hud initialized [ INFO] [1550615283.439567779]: Plugin vibration blacklisted [ INFO] [1550615283.439755275]: Plugin vision_pose_estimate loaded [ INFO] [1550615283.457540915]: Plugin vision_pose_estimate initialized [ INFO] [1550615283.457703193]: Plugin vision_speed_estimate loaded [ INFO] [1550615283.465478522]: Plugin vision_speed_estimate initialized [ INFO] [1550615283.465761859]: Plugin waypoint loaded [ INFO] [1550615283.474218655]: Plugin waypoint initialized [ INFO] [1550615283.474330396]: Autostarting mavlink via USB on PX4 [ INFO] [1550615283.474477571]: Built-in SIMD instructions: SSE, SSE2 [ INFO] [1550615283.474554361]: Built-in MAVLink package version: 2018.11.11 [ INFO] [1550615283.474614431]: Known MAVLink dialects: common ardupilotmega ASLUAV autoquad icarous matrixpilot paparazzi slugs standard uAvionix ualberta [ INFO] [1550615283.474657310]: MAVROS started. MY ID 1.240, TARGET ID 1.1 [ WARN] [1550615283.817167434]: TM: Clock skew detected (-1550615055.508069277 s). Hard syncing clocks. [ INFO] [1550615283.817390639]: IMU: High resolution IMU detected! [ INFO] [1550615284.254528131]: CON: Got HEARTBEAT, connected. FCU: PX4 Autopilot [ WARN] [1550615284.790526019]: GP: No GPS fix [ INFO] [1550615285.531879261]: VER: 1.1: Capabilities 0x000000000000e4ef [ INFO] [1550615285.531966079]: VER: 1.1: Flight software: 01080000 (000000000A0E09B0) [ INFO] [1550615285.532021496]: VER: 1.1: Middleware software: 01080000 (000000000A0E09B0) [ INFO] [1550615285.532076209]: VER: 1.1: OS software: 071600ff (0000000070141D7D) [ INFO] [1550615285.532125921]: VER: 1.1: Board hardware: 00000011 [ INFO] [1550615285.532166168]: VER: 1.1: VID/PID: 26ac:0011 [ INFO] [1550615285.532211826]: VER: 1.1: UID: 3036511438363834 [ INFO] [1550615285.532544347]: IMU: High resolution IMU detected! [ WARN] [1550615285.594104998]: CMD: Unexpected command 520, result 0 [ WARN] [1550615293.929445061]: TM: Clock skew detected (0.027132136 s). Hard syncing clocks.
Diagnostics