BasicAirData / GPSLogger

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

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

Open GrazianoCapelli opened 1 year ago

GrazianoCapelli commented 1 year 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 11 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 11 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.

TimTrek commented 1 month ago

@GrazianoCapelli

As @icrf2000 already mentioned, I would find the option of being able to link the ‘Interval-filter’ and the ‘Distance-filter’ SELECTIVELY with an ‘AND’ or ‘OR’ logic totally useful!