This commit is contained in:
Nico
2025-06-06 20:15:23 +02:00
parent ccf1643711
commit 9c84d0c375

View File

@@ -45,12 +45,13 @@ class TrackingService {
final _positionController = StreamController<Position>.broadcast();
final _statsController = StreamController<TrackingStats>.broadcast();
// - Stores the last measured accuracy so that it can be displayed in the excursions view
double? currentAccuracy;
// - Getter
Stream<Position> get positionStream$ => _positionController.stream;
Stream<TrackingStats> get statsStream$ => _statsController.stream;
// - Stores the last measured accuracy so that it can be displayed in the excursions view double? currentAccuracy;
// Name says it all
double _calculateMedianAccuracy(List<double> accuracies) {
// if one or less values for accuracy are available return that accuracy or 0