GNSS minőség adatok kijelzése (pod-ok)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import 'dart:async';
|
||||
import 'dart:math';
|
||||
import 'dart:typed_data';
|
||||
|
||||
import 'package:geolocator/geolocator.dart';
|
||||
@@ -93,6 +94,13 @@ class GnssService extends GetxService {
|
||||
return activeSatelliteKeys.contains(sat.satelliteKey);
|
||||
}
|
||||
|
||||
double? get horizontalAccuracy {
|
||||
final lat = latitudeError.value;
|
||||
final lon = longitudeError.value;
|
||||
|
||||
return sqrt(lat * lat + lon * lon);
|
||||
}
|
||||
|
||||
// ── Belső ─────────────────────────────────────────────────────────
|
||||
final NmeaDecoder _decoder = NmeaDecoder();
|
||||
StreamSubscription? _nmeaSub;
|
||||
|
||||
Reference in New Issue
Block a user