完善遥控权限、控制发送和急停反馈

This commit is contained in:
2026-11-21 14:37:46 +08:00
parent c284aefc7d
commit 9a8a42a0a1
55 changed files with 5009 additions and 1308 deletions

View File

@@ -0,0 +1,6 @@
import '../../../../core/error/failure.dart';
/// 后端明确返回业务失败,区别于断线/超时导致的结果未知。
class EmergencyStopRejectedFailure extends ServerFailure {
EmergencyStopRejectedFailure(super.message);
}

View File

@@ -0,0 +1,8 @@
/// 请求目标,不代表设备已经执行;实际急停状态仍以设备反馈为准。
enum EmergencyStopTarget {
engage(1),
release(0);
const EmergencyStopTarget(this.value);
final int value;
}