mavlink / qgroundcontrol

Cross-platform ground control station for drones (Android, iOS, Mac OS, Linux, Windows)
http://qgroundcontrol.io
3.18k stars 3.53k forks source link

Support airspeed sensor calibration on all airframes (feature request) #3820

Open tstellanova opened 8 years ago

tstellanova commented 8 years ago

I would like to attach a pitot airspeed sensor to a multicopter airframe and compare the measured airspeed with the estimated velocity. However, because this is a multicopter airframe, qgroundcontrol doesn't present an option to calibrate the airspeed sensor. The calibration option is apparently only presented by qgc on airframes for which an airspeed sensor is required (eg VTOL and FW).

One workaround is to use nsh and the commander command line "commander calibrate airspeed" to calibrate the sensor. However, it would be great if the presence of the airspeed sensor could be detected by qgc, and the calibration option presented.

DonLakeFlyer commented 8 years ago

As far as I know there is no way for QGC to detect an airspeed sensor. Need support on the firmware side.

dagar commented 7 years ago

I think the right way to do this would be SYS_STATUS onboard_control_sensors_present. It's already partially implemented in PX4, we'd just need differential pressure set by the airspeed sensor drivers and maybe a few others while we're at it.

MAV_SYS_STATUS_SENSOR_DIFFERENTIAL_PRESSURE MAV_SYS_STATUS_SENSOR_GPS etc

I can implement the PX4 side if someone wants to update QGC sensor calibration.

DonLakeFlyer commented 7 years ago

A little hard to figure out to handle things that show up all of a sudden. These bits in status don't really work if they aren't implemented immediately as soon as they become available. Otherwise no way to tell if the bit is not set because there is no airspeed. Or if the bit is not set because the firmware doesn't support it yet.