Closed maciek01 closed 11 months ago
1: The example only reports position telementry. I does not report neither gps_info, in_air or battery
With ardupilot, don't you have to set_rate
on those telemetry streams? Otherwise I think ardupilot may not be publishing anything by default.
let me add it... yes, this helped - thanks!
@JonasVautherin sorry - i know this has nothign to do with the issue i reported, but since i got your attention :) - any chance to add the following functionality:
If these are things related to the actual PX4 i can put my request over there
thanks!
StatusCode.UNAVAILABLE
Is the mavsdk_server binary crashing?
Can you give me instructions how I can reproduce this?
@julianoes no, not since i added the set rate statements. Its been up now for 2 hours and will keep it overnight reporting telemetry. (matek h743 wing, AC 4.4.2, latest mavsdk).
Update: extended longevity test - 12 hours was successful.
Here is the full set of telem i am testing with:
#register listeners
await vehicle.telemetry.set_rate_position(1)
await vehicle.telemetry.set_rate_in_air(1)
await vehicle.telemetry.set_rate_landed_state(1)
await vehicle.telemetry.set_rate_battery(5)
await vehicle.telemetry.set_rate_gps_info(1)
await vehicle.telemetry.set_rate_home(5)
tasks.append(asyncio.create_task(onPX4_battery(vehicle)))
tasks.append(asyncio.create_task(onPX4_mode(vehicle)))
tasks.append(asyncio.create_task(onPX4_heading(vehicle)))
tasks.append(asyncio.create_task(onPX4_statusText(vehicle)))
tasks.append(asyncio.create_task(onPX4_gps_info(vehicle)))
tasks.append(asyncio.create_task(onPX4_position(vehicle)))
tasks.append(asyncio.create_task(onPX4_raw_gps(vehicle)))
tasks.append(asyncio.create_task(onPX4_home(vehicle)))
tasks.append(asyncio.create_task(onPX4_is_armed(vehicle)))
I am runing the latest version of telemetry.py example against arducopter 4.4.2 FC.
2 problems:
1: The example only reports position telementry. I does not report neither gps_info, in_air or battery
2: It eventually fails on a communication issue
example adjusted for my hardware port: https://github.com/maciek01/dronegprs-mavsdk/blob/main/mavsdk-examples/telemetry.py
output: