Dennis Guse
6723bfb979
TrackRecordingService: provide status updates via LiveData.
...
Fixes #719
2021-05-03 22:13:23 +02:00
Dennis Guse
887d4700d4
TrackDataHub computes TrackStatistics and passes it to listeners.
...
Part of #719 .
2021-04-27 19:02:53 +02:00
Dennis Guse
391dfd30e2
TrackDataHub does not need to register for status changes of TrackRecordingService.
...
This is handled by TrackRecordingActivity alone.
Part of #719 .
2021-04-27 19:02:53 +02:00
Dennis Guse
df3720ef0d
Bugfix: TrackDataManager.unregisterTrackDataListener was not removing listener.
2021-04-27 19:02:53 +02:00
Román Martínez
99126fa357
Distance interval bugfixed: interval options are km/mi values.
2021-04-17 21:16:32 +02:00
Dennis Guse
bc2a3ddee3
IntervalStatistics/Announcement: use Distance.
2021-04-13 19:18:18 +02:00
Dennis Guse
610da5a106
Statistics*Fragment: keep reference to track instead of TrackStatistics and category.
2021-04-13 19:18:18 +02:00
Dennis Guse
6f9c788965
Value objects distance and speed.
...
#679
2021-04-13 19:18:18 +02:00
Dennis Guse
1e518a4c35
Use a non-static Binder for TrackRecordingService.
...
Fixes #98 .
2021-04-09 18:34:23 +02:00
Dennis Guse
1c6012596e
Use Duration for Markers (instead of long).
2021-04-09 18:34:03 +02:00
Dennis Guse
bc1b4e3cd2
Rename elevation to altitude (without translations).
...
Fixes #678 .
2021-04-04 17:45:38 +02:00
Román Martínez
e09b04308c
Track recording service handles the status of recording: track's id, pause and GPS status.
...
Created an interface for all components that want to know about recording status through the service.
All interface's methods are optional so every component can implement what they need.
Fixes #388 .
2021-04-04 13:15:42 +02:00
Dennis Guse
ed5da55fba
Hack: Garmin Speed 2 might count backwards.
2021-03-15 17:27:41 +01:00
Dennis Guse
2431d60171
Cleanup.
2021-03-15 17:27:41 +01:00
Dennis Guse
7d2a6fff59
TrackPointIterator: removed manual batching as it should not be necessary.
2021-03-15 17:27:41 +01:00
Dennis Guse
a5158a55d9
Use distance from cycling speed sensors.
...
Fixes #505 .
2021-03-15 17:27:41 +01:00
Dennis Guse
15fbd90ca4
Performance: Keep reference to sharedPreferences.
...
So far, we opened the SharedPreferences very often, which is very slow; also happened in the UI thread a lot.
Fixes #642 .
2021-03-15 12:01:32 +01:00
Román Martínez
bd48944ad5
Track export name: first UUID, name and extension (<First 32bits UUID>_<track's name>.<extension>). Fixes #512 .
2021-03-14 18:42:27 +01:00
Dennis Guse
29b522b8a2
Cleanup.
2021-03-11 21:16:24 +01:00
Dennis Guse
26e655d58f
Cleanup.
2021-03-08 18:11:36 +01:00
Dennis Guse
3dc8a724d8
Bug: StatisticsRecordingFragment: speed and location where sometimes 0.
...
Fixes #628 .
2021-03-07 22:28:53 +01:00
Dennis Guse
3f5c3a5c08
Bugfix: Close cursor.
2021-03-06 18:27:24 +01:00
Dennis Guse
97454b5369
Statistics*Fragment now updates the units on track category change.
2021-03-04 19:18:31 +01:00
Dennis Guse
fce76230e1
TrackDataListener now passes most recent TrackPoint to onNewTrackPointsDone().
2021-03-04 19:18:31 +01:00
Dennis Guse
fdf4336a9b
Cleanup.
2021-03-04 19:18:31 +01:00
Dennis Guse
844c6e9609
TrackPoint: moved methods into class.
2021-03-04 19:18:31 +01:00
Román Martínez
edf4ccc941
It computes the average for heart rate, cadence, and power (duration-based average) and the maximum for heart rate and cadence.
2021-03-02 19:55:18 +01:00
Dennis Guse
4040e3f45b
Bugfix: crash on recording start due to show latitude/longitude option.
...
Fixes #613 .
2021-02-27 18:37:42 +01:00
Román Martínez
a9624f72e7
Track recorded stats shows sensor data from trackpoints table.
...
Heart rate: maximum and average.
Cadence: maximum and average.
Power: average.
Fixes #525 and #502 .
2021-02-14 17:34:19 +01:00
Dennis Guse
fa12086951
GPX: only export TrackPoints with lat/lng. ( #591 )
...
GPX: only export TrackPoints with lat/lng.
Thus, segmentation (manual/automatic) cannot be restored on import.
This also affects the TrackStatistics.
2021-02-09 19:00:28 +01:00
Dennis Guse
cd4e0abd6f
SensorData: use Instant instead of long.
2021-02-07 23:16:12 +01:00
Román Martínez
2f3d9a29f3
Fixed a bug: TrackDataHub will send to listeners all TrackPoints every time a change on trackpoints table was observed. Fixes #582 .
2021-01-30 23:15:54 +01:00
Dennis Guse
d157e94220
Marker refactoring.
...
Location values are stored directly.
2021-01-24 22:21:37 +01:00
Dennis Guse
022d8146fe
TrackDataHub always sends via handler.
2021-01-24 22:21:37 +01:00
Dennis Guse
912fd1aa2f
TrackStatistics startTime/stopTime is null on creation.
2021-01-24 22:21:36 +01:00
Dennis Guse
1d46981717
Cleanup.
2021-01-24 22:21:36 +01:00
Dennis Guse
e990b413cd
Replace long time_ms with Instant and Duration, respectively.
...
Fixes #561 .
2021-01-24 22:21:36 +01:00
Dennis Guse
f635d56ceb
Cleanup.
2021-01-24 22:21:36 +01:00
Dennis Guse
ab47320216
Segments: import/export is working incl. restoring TrackStatistics.
...
KML exports sensor data if actually present.
#316 .
2021-01-24 22:21:36 +01:00
Dennis Guse
47b2d0748a
Segments: only insert one trackpoint and set the type.
...
Existing data is not migrated.
#316 .
2021-01-24 22:21:36 +01:00
Dennis Guse
bc66cd33a9
Use system time instead of GPS-provided time.
...
#316 .
2021-01-24 22:21:36 +01:00
Dennis Guse
fcc17413e3
Segments: use TrackPoint.type.
...
So, far specific latitude for segment start/end (i.e., PAUSE/RESUME) was used.
#316 .
2021-01-24 22:21:36 +01:00
Dennis Guse
393e2022a1
Bugfix: database downgrade from 30 to 29 removed required elevation_gain column.
2021-01-24 22:06:48 +01:00
Dennis Guse
50bb0b14b4
Segments: database upgrade/downgrade functionality for version 30; version 29 is still used.
...
This will store segment data in TrackPoint.type.
This commit will enable downgrading to previous version.
#316 .
2021-01-24 21:14:50 +01:00
Dennis Guse
e9551bea36
Introduced TrackPoint.Id.
2021-01-10 20:25:59 +01:00
Dennis Guse
577b978a5c
Cleanup.
2021-01-10 20:25:59 +01:00
Dennis Guse
a689b6eb2c
Cleanup: removed descending iterator for TrackPoints.
2021-01-10 20:25:59 +01:00
Dennis Guse
ccd93dd17d
Track.Id must now always be valid (if present).
2021-01-10 20:25:59 +01:00
Dennis Guse
f4fe1d8d97
Marker.Id must now always be valid (if present).
2021-01-10 20:25:59 +01:00
Román Martínez
4714171e21
Added elevation loss via barometer (like elevation gain). Fixes #547 .
2020-12-25 18:19:01 +01:00