fix
This commit is contained in:
@@ -45,12 +45,13 @@ class TrackingService {
|
|||||||
final _positionController = StreamController<Position>.broadcast();
|
final _positionController = StreamController<Position>.broadcast();
|
||||||
final _statsController = StreamController<TrackingStats>.broadcast();
|
final _statsController = StreamController<TrackingStats>.broadcast();
|
||||||
|
|
||||||
|
// - Stores the last measured accuracy so that it can be displayed in the excursions view
|
||||||
|
double? currentAccuracy;
|
||||||
|
|
||||||
// - Getter
|
// - Getter
|
||||||
Stream<Position> get positionStream$ => _positionController.stream;
|
Stream<Position> get positionStream$ => _positionController.stream;
|
||||||
Stream<TrackingStats> get statsStream$ => _statsController.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
|
// Name says it all
|
||||||
double _calculateMedianAccuracy(List<double> accuracies) {
|
double _calculateMedianAccuracy(List<double> accuracies) {
|
||||||
// if one or less values for accuracy are available return that accuracy or 0
|
// if one or less values for accuracy are available return that accuracy or 0
|
||||||
|
|||||||
Reference in New Issue
Block a user