蓝牙绑定设备+场站切换支持高清图层的一对一显示+设备实时状态的部分显示

This commit is contained in:
2026-09-02 16:58:45 +08:00
parent 61bce2c1cf
commit 5141d6e83f
10 changed files with 458 additions and 133 deletions

View File

@@ -1,7 +1,7 @@
class EnvConfig {
static const String environment = String.fromEnvironment(
'ENV',
defaultValue: 'prod',
defaultValue: 'test',
);
static String get sentryDsn {

View File

@@ -14,6 +14,10 @@ class MowerLocationEntity extends Equatable {
/// 速度
final double? speed;
/// 定位质量(fix_status)
final String? fixStatus;
final String? timestamp;
/// 原始报文,便于解析格式确认后补充字段
@@ -25,6 +29,7 @@ class MowerLocationEntity extends Equatable {
this.altitude,
this.heading,
this.speed,
this.fixStatus,
this.timestamp,
this.rawData = const {},
});
@@ -38,6 +43,7 @@ class MowerLocationEntity extends Equatable {
altitude: _toDouble(json['altitude'] ?? json['height']),
heading: _toDouble(json['heading'] ?? json['yaw']),
speed: _toDouble(json['speed']),
fixStatus: json['fix_status']?.toString(),
timestamp: json['timestamp']?.toString(),
rawData: json,
);
@@ -50,5 +56,5 @@ class MowerLocationEntity extends Equatable {
}
@override
List<Object?> get props => [latitude, longitude, altitude, heading, speed, timestamp];
List<Object?> get props => [latitude, longitude, altitude, heading, speed, fixStatus, timestamp];
}