GnssService javítás, refraktálás
This commit is contained in:
@@ -4,6 +4,7 @@ import 'dart:math';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:intl/intl.dart';
|
||||
import 'package:terepi_seged/pages/map_survey/presentations/controllers/map_survey_controller.dart';
|
||||
import 'package:terepi_seged/services/ntrip_service.dart';
|
||||
|
||||
import '../services/gnss/gnss_service.dart';
|
||||
@@ -35,7 +36,7 @@ class CoordinatePanel extends StatelessWidget {
|
||||
});
|
||||
|
||||
/// Gyors factory — MapSurveyController mezőiből.
|
||||
factory CoordinatePanel.fromController(dynamic ctrl) {
|
||||
factory CoordinatePanel.fromController(MapSurveyController ctrl) {
|
||||
final y = RxDouble(0.0);
|
||||
final x = RxDouble(0.0);
|
||||
// Figyeli az eov változást és frissíti Y/X-et
|
||||
@@ -45,7 +46,7 @@ class CoordinatePanel extends StatelessWidget {
|
||||
});
|
||||
return CoordinatePanel(
|
||||
eovY: y,
|
||||
eovX: x,
|
||||
eovX: ctrl.eov.value.X.obs,
|
||||
horError: ctrl.gpsLatitudeError as RxDouble,
|
||||
vertError: ctrl.gpsAltitudeError as RxDouble,
|
||||
altitudeMsl: ctrl.gpsAltitude as RxDouble,
|
||||
|
||||
Reference in New Issue
Block a user