修改枚举
This commit is contained in:
parent
a876c6c310
commit
57302a8e42
|
|
@ -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
|
||||||
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue