Libella megjelnítése mérőrúdhoz, transzverzális rajzolása az aktuális kitűzendő ponthoz
This commit is contained in:
@@ -9,6 +9,7 @@ import 'package:terepi_seged/services/app_database.dart';
|
||||
import 'package:terepi_seged/services/coord_converter_service.dart';
|
||||
import 'package:terepi_seged/services/gnss/gnss_service.dart';
|
||||
import 'package:terepi_seged/services/project_service.dart';
|
||||
import 'package:terepi_seged/services/tilt_service.dart';
|
||||
import 'package:wakelock_plus/wakelock_plus.dart';
|
||||
|
||||
import '../../models/stakeout_point.dart';
|
||||
@@ -53,12 +54,14 @@ class StakeoutService extends GetxService {
|
||||
active.value = value;
|
||||
if (value) {
|
||||
WakelockPlus.enable();
|
||||
if (Get.isRegistered<TiltService>()) TiltService.to.setActive(true);
|
||||
await load();
|
||||
_applyPhase();
|
||||
_scheduleHaptic();
|
||||
} else {
|
||||
_hapticTimer?.cancel();
|
||||
WakelockPlus.disable();
|
||||
if (Get.isRegistered<TiltService>()) TiltService.to.setActive(false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -467,6 +470,11 @@ class StakeoutService extends GetxService {
|
||||
devInline: inline,
|
||||
devCrossline: crossline,
|
||||
devDz: t.planEovZ != null ? t.planEovZ! - useAlt : null,
|
||||
tiltDeg: Get.isRegistered<TiltService>() &&
|
||||
TiltService.to.isCalibrated.value &&
|
||||
!TiltService.to.isMoving.value
|
||||
? TiltService.to.tiltDeg.value
|
||||
: null,
|
||||
fixQuality: gnss.gpsQuality.value,
|
||||
accuracy: gnss.horizontalAccuracy,
|
||||
stakedAt: DateTime.now(),
|
||||
|
||||
Reference in New Issue
Block a user