修改枚举

This commit is contained in:
孙小云 2026-01-19 16:47:03 +08:00
parent a876c6c310
commit 57302a8e42
1 changed files with 18 additions and 1 deletions

View File

@ -23,6 +23,22 @@ public class DeviceTelemetry {
* 无人机独状态 * 无人机独状态
*/ */
/**
* 运行时长 {"unit_name":"秒 / s"}
*/
public static final TelemetryKey<Integer> Acc_Time = TelemetryKey.of(
"acc_time",
Integer.class,
value -> {
if (value == null) return null;
if (value instanceof Number) {
return ((Number) value).intValue();
}
return Integer.parseInt(value.toString());
}
);
/** /**
* 飞行次数 * 飞行次数
*/ */
@ -233,7 +249,8 @@ public class DeviceTelemetry {
Sub_Device_Online_Status, Sub_Device_Online_Status,
Total_Flight_Sorties, Total_Flight_Sorties,
Drone_Charge_State_State, Drone_Charge_State_State,
Drone_In_Dock Drone_In_Dock,
Acc_Time
); );
} }