Dennis Guse
45125bcda3
Refactor: rename LocationHandler to GPSHandler.
2021-12-28 13:05:23 +01:00
Dennis Guse
3359a30907
TrackRecordingService: first process the TrackPoint, then update the notification.
2021-12-28 13:05:23 +01:00
Dennis Guse
6fe6cee475
BLE: CSC remove workarounds as those are not necessary.
...
The implementation of OpenTracks for the CSC parsing was broken and fixed in 35de5b6b26
Fixes #1046 .
2021-12-21 22:00:38 +01:00
Dennis Guse
52228d44a9
Cleanup.
2021-12-21 21:55:41 +01:00
Dennis Guse
25e590da02
Moving time: re-implement idle/non-idle TrackPoints.
...
Simplify computation of TrackStatistics.
Part of #1046 .
2021-12-19 22:01:35 +01:00
Dennis Guse
4c7d9384fb
Revert "Only record a TrackPoint if the traveled distance is greater than recording distance interval."
...
This reverts commit 08ba7d50c7 .
Fix #1046 .
2021-12-19 21:56:53 +01:00
Dennis Guse
d93e025963
BLE sensors: clear data when disconnected.
...
Part of #1027 .
2021-11-20 19:43:38 +01:00
Dennis Guse
1f0a99c49a
Recording: ignore TrackPoints that contain sensor data and do not fulfill recording distance interval.
...
Follow-up to 08ba7d50c7
Part of #1027 .
2021-11-20 19:43:38 +01:00
Dennis Guse
ce5eec6a68
Bugfix: prevent NPE when disabling voice announcements while recording.
...
Fixes #940 .
2021-11-13 20:07:32 +01:00
Dennis Guse
08ba7d50c7
Only record a TrackPoint if the traveled distance is greater than recording distance interval.
...
Code seemed to be a leftover from the removed idle/non-idle functionality.
Fixed #1007 .
Co-authored-by: vlmendz <91810638+vlmendz@users.noreply.github.com >
2021-11-08 22:42:14 +01:00
Dennis Guse
62401b2c5c
Cleanup.
2021-11-07 22:19:02 +01:00
Román Martínez
083b620e41
GPS data recording: remove idle/non-idle changes due to reported speed greater than 0.5mph.
...
This avoids that to storing GPS locations if the user r actually is not moving (likely bad GPS reception).
Fixes #968 .
Co-authored-by: vlmendz <91810638+vlmendz@users.noreply.github.com >
Co-authored-by: Dennis Guse <dennis.guse@alumni.tu-berlin.de >
2021-10-18 23:26:07 +02:00
Dennis Guse
d07ab3cc22
TrackRecordingManager: do not store altitude changes twice (previous …
...
…TrackPoint's storage was delayed).
Fixes #969 .
2021-10-16 10:23:09 +02:00
Dennis Guse
90493ae498
TrackRecordingManager: do not store sensor distance twice (previous TrackPoint's storage was delayed).
...
Fixes #969 .
2021-10-16 10:23:09 +02:00
Dennis Guse
f6b994572a
TrackRecordingManager: cache last stored TrackPoint.
2021-10-16 10:23:09 +02:00
Dennis Guse
24826ff442
TrackRecordingManager: cleanup.
2021-10-16 10:23:09 +02:00
Dennis Guse
d97e5ab1ef
TrackRecordingManager: only keep lastTrackPoint if was not stored.
2021-10-16 10:23:09 +02:00
Dennis Guse
52a110d998
Bugfix: reset on SensorDataSet should only take place if the TrackPoint was stored
...
Fixes #969 .
2021-10-16 10:23:09 +02:00
Dennis Guse
2f5b7b63e4
Opening from notification: pressing back goes to TrackListActivity.
...
Fixes #928 .
2021-10-14 18:33:44 +02:00
Dennis Guse
0527e4ab14
Cleanup: move AnnouncementUtils to VoiceAnnouncement.
...
Part of #963
2021-10-12 22:24:51 +02:00
Dennis Guse
b6b4c5aa39
Cleanup: move PreferencesUtils into settings package.
...
Part of #963
2021-10-12 22:24:51 +02:00
Dennis Guse
eac3d4b3db
Cleanup: SharedPreference as static variable.
...
Fixes #961 .
2021-10-12 22:24:51 +02:00
Román Martínez
d99fb5ea47
Cadence set to 0 when connected but user is not pedaling. Fixes #931 .
...
Speed set to 0 when connected but last value is outdated. Fixes #930 .
Bug: overflow when reset sensors (cadence and speed). Fixes #833 .
Moving time stops when is not moving (the last track point is not moving) and restarts when last track point is moving.
2021-09-21 18:07:23 +02:00
Timo Schwarzer
487bd6c3a0
Set FLAG_IMMUTABLE for PendingIntents
...
This fixes a crash on Android 12, since it explicitly requires setting either FLAG_MUTABLE or FLAG_IMMUTABLE
2021-09-07 23:18:14 +02:00
Dennis Guse
8f2d1722ad
Announcements: can be triggered by time and distance (instead of either).
...
Fixes #921 .
2021-08-30 17:24:51 +02:00
Dennis Guse
9cb3d8c1bb
Finished renaming: TrackPointCreator was still referenced as HandlerServer.
2021-08-30 17:24:51 +02:00
Dennis Guse
fa02ba9c69
Voice announcements: if TTS is not available play a sound file.
...
Fixes #862 .
2021-08-30 17:24:51 +02:00
Dennis Guse
4f31607e3e
Voice announcements are now triggered by the TrackRecordingService's timer that is also used for UI updates.
2021-08-30 17:24:51 +02:00
Dennis Guse
b5165de7f0
PeriodicTaskExecutor: use a Handler instead of Timer.
2021-08-30 17:24:51 +02:00
Dennis Guse
b32e87e10b
PeriodTaskFactory: refactor interfaces.
2021-08-30 17:24:51 +02:00
Dennis Guse
5981340bb9
TrackRecordingManager: only keeps reference to TrackId.
2021-08-28 19:00:06 +02:00
Dennis Guse
d77b9243af
RecordingStatus provides methods for status changes.
2021-08-25 22:58:45 +02:00
Dennis Guse
68c447f77e
Removed AdaptiveLocationListenerPolicy.
...
Fixes #886 .
2021-08-24 18:26:09 +02:00
Román Martínez
13380afef0
TrackRecordingManager only updates track's statistics every time a new track point is inserted. Fixes #916 .
2021-08-22 20:01:38 +02:00
Dennis Guse
1f84e44a8d
Bugfix: LocationHandler should ignore locations after stopping.
2021-08-15 14:30:57 +02:00
Dennis Guse
6f3efd9ff2
Bugfix: reset TrackRecordingManager properly.
...
Fixes #901 .
2021-08-07 19:37:14 +02:00
Dennis Guse
a3872581bb
Cleanup: Renamed HandlerServer to TrackPointCreator.
2021-08-01 18:40:38 +02:00
Dennis Guse
242147e491
Sensor: adding Running Speed and Cadence.
...
Fixes #891 .
2021-07-31 18:44:42 +02:00
Dennis Guse
54be1b74fb
Lint: fix AGP7.0.0 found linting errors.
2021-07-29 22:54:57 +02:00
Dennis Guse
bb90c53057
Simplified voice announcement interface.
...
Part of #822 .
2021-07-22 17:18:31 +02:00
Dennis Guse
bd5bf530f0
TrackRecordingService: extracted storing data into TrackRecordingManager.
...
Part of #822 .
2021-07-22 17:18:31 +02:00
Dennis Guse
a4580fc84e
Cleanup.
2021-07-22 17:18:31 +02:00
Dennis Guse
9ab34eb846
TrackRecordingService: EGM2008 computation should only be done for UI.
...
Reverting 16483d4261ff780f940fe4ea223957c898023e14
2021-07-22 17:18:31 +02:00
Dennis Guse
997ddbb4f1
ExportImportTest: made tests deterministic (simulate GPS/sensors).
...
Fixes #761 .
2021-07-22 17:18:31 +02:00
Dennis Guse
86a0054c24
Bugfix: TrackStatistics' total time was not restored correctly, when having pause/stop and then resume.
2021-07-22 17:18:31 +02:00
Dennis Guse
3bd00c906a
LocationHandler.onStop(): reset state.
2021-07-22 17:18:31 +02:00
Dennis Guse
d42d1214ea
While recording: UI updates altitude, speed, and bearing to most recently received value.
...
Fixes #866 .
2021-07-22 17:18:31 +02:00
Dennis Guse
db24639829
Cleanup: horizontal accuracy is now a Distance (and named consistently).
2021-07-22 17:18:31 +02:00
Dennis Guse
0f6480197b
Cleanup.
2021-07-22 17:18:31 +02:00
Dennis Guse
18702bb6b3
Cleanup.
2021-07-22 17:18:31 +02:00