USB 摄像头适配iPadOS17+
This commit is contained in:
@@ -44,6 +44,8 @@ class RunningStatusEntity extends Equatable {
|
||||
|
||||
// === 主机实时话题(device/{sn}/host/realTime/message)扩展字段(新增,纯附加) ===
|
||||
final double totalWorkDistance; // host 累计作业里程(供"巡检里程"展示)
|
||||
final double linearSpeed; // host 实时线速度 m/s(前进为正,后退为负)
|
||||
final double angularSpeed; // host 实时角速度 rad/s(左转为正,右转为负)
|
||||
final bool hostDataReceived; // 是否已收到 host 实时数据(未收到时 UI 显示"未知")
|
||||
|
||||
const RunningStatusEntity({
|
||||
@@ -72,6 +74,8 @@ class RunningStatusEntity extends Equatable {
|
||||
this.workingArea = '0',
|
||||
this.obstacleFlag = '0',
|
||||
this.totalWorkDistance = 0.0,
|
||||
this.linearSpeed = 0.0,
|
||||
this.angularSpeed = 0.0,
|
||||
this.hostDataReceived = false,
|
||||
});
|
||||
|
||||
@@ -173,6 +177,8 @@ class RunningStatusEntity extends Equatable {
|
||||
String? workingArea,
|
||||
String? obstacleFlag,
|
||||
double? totalWorkDistance,
|
||||
double? linearSpeed,
|
||||
double? angularSpeed,
|
||||
bool? hostDataReceived,
|
||||
}) {
|
||||
return RunningStatusEntity(
|
||||
@@ -201,6 +207,8 @@ class RunningStatusEntity extends Equatable {
|
||||
workingArea: workingArea ?? this.workingArea,
|
||||
obstacleFlag: obstacleFlag ?? this.obstacleFlag,
|
||||
totalWorkDistance: totalWorkDistance ?? this.totalWorkDistance,
|
||||
linearSpeed: linearSpeed ?? this.linearSpeed,
|
||||
angularSpeed: angularSpeed ?? this.angularSpeed,
|
||||
hostDataReceived: hostDataReceived ?? this.hostDataReceived,
|
||||
);
|
||||
}
|
||||
@@ -232,6 +240,8 @@ class RunningStatusEntity extends Equatable {
|
||||
workingArea,
|
||||
obstacleFlag,
|
||||
totalWorkDistance,
|
||||
linearSpeed,
|
||||
angularSpeed,
|
||||
hostDataReceived,
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user