蓝牙绑定设备+场站切换支持高清图层的一对一显示+设备实时状态的部分显示
This commit is contained in:
2
lib/core/env/env_config.dart
vendored
2
lib/core/env/env_config.dart
vendored
@@ -1,7 +1,7 @@
|
||||
class EnvConfig {
|
||||
static const String environment = String.fromEnvironment(
|
||||
'ENV',
|
||||
defaultValue: 'prod',
|
||||
defaultValue: 'test',
|
||||
);
|
||||
|
||||
static String get sentryDsn {
|
||||
|
||||
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user