moshe-braner / SoftRF

:airplane: Multifunctional, compatible DIY general aviation proximity awareness system
GNU General Public License v3.0
20 stars 5 forks source link

Vertical speed from GPS data #8

Closed moshe-braner closed 7 months ago

moshe-braner commented 2 years ago

The master SoftRF source code only fills in the vertical speed field for "this aircraft", and thus in outgoing radio packets, if there is a barometric sensor in the hardware. But vertical speed information can be deduced from GPS data, and may be of interest, or even useful for collision prediction. Thus I've added code (in the MB05 version) to fill in this field from (smoothed) GPS data if there is no baro sensor.

Note that the outgoing radio packets in Legacy and P3I protocols only include GPS altitude! OGNTP packets include both that and pressure_altitude, and FANET packets include GPS altitude and info on the offset between that and pressure_altitude.