BasicAirData / GPSLogger

A GPS logger for Android mobile devices
http://www.basicairdata.eu/projects/android/android-gps-logger/
GNU General Public License v3.0
371 stars 119 forks source link

Implement the possibility to use filters with OR / AND logic #210

Open GrazianoCapelli opened 10 months ago

GrazianoCapelli commented 10 months ago

Some software uses filters in AND logic, some other in OR. I report here what a user send us via email:

I would like to use the feature "Intervall-Filter" and "Distance-Filter" together, but with an "AND" logic. Is it possible to implement an additional button at the settings, to switch between "AND" or "OR" logic?

The reason is, that I don't want to record data if I havn't reached a user defined distance (for example when I hold the position).

We could add a setting that allow the user to select the desired logic for filters.

Time for discussion...

icrf2000 commented 6 months ago

That choice would be good to have. For example the setting

DIST>4m OR INTERVAL>20s

is good for a hiking track, but not good for tracking a flight. Here,

DIST>4m AND INTERVAL>20s

would be appropriate.

icrf2000 commented 6 months ago

Just used a modified version with OR replaced by AND. I find it good this way, better than OR. Perfect would of course be to have the choice.