moshe-braner / SoftRF

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

hysteresis in alarm levels #4

Closed moshe-braner closed 5 months ago

moshe-braner commented 2 years ago

Should allow repeated alarms for same traffic if it gets closer - but don't want constant alarms for same traffic. If a lower alarm level is required to re-arm the alarm, traffic that crosses the boundary back and forth will still cause unwanted repeated alarms.

moshe-braner commented 2 years ago

Modified source code to:

moshe-braner commented 2 years ago

Found a bug in version MB05 that prevented the hysteresis. (At time of Traffic_Update() of newly arrived packets from already-known traffic the historical alert_level was not yet filled in.) Will be fixed in MB06.