Commit cd281038 by gdj

add dock batteryChannels

parent 13782c63
package com.dji.sdk.cloudapi.device;
import java.io.Serializable;
/**
* 草莓机场 机场换电电池信息
* @author guan
*/
public class BatteryChannel implements Serializable {
private Integer index;
private Integer current;
private Integer cycle;
private Integer health;
private Integer capacityPercent;
private Float temperature;
private Integer status;
private String name;
public BatteryChannel() {
}
@Override
public String toString() {
return "BatteryChannel{" +
"index=" + index +
", current=" + current +
", cycle=" + cycle +
", health=" + health +
", capacityPercent=" + capacityPercent +
", temperature=" + temperature +
", status=" + status +
", name=" + name +
'}';
}
public Integer getIndex() {
return index;
}
public BatteryChannel setIndex(Integer index) {
this.index = index;
return this;
}
public Integer getCurrent() {
return current;
}
public BatteryChannel setCurrent(Integer current) {
this.current = current;
return this;
}
public Integer getCycle() {
return cycle;
}
public BatteryChannel setCycle(Integer cycle) {
this.cycle = cycle;
return this;
}
public Integer getHealth() {
return health;
}
public BatteryChannel setHealth(Integer health) {
this.health = health;
return this;
}
public Integer getCapacityPercent() {
return capacityPercent;
}
public BatteryChannel setCapacityPercent(Integer capacityPercent) {
this.capacityPercent = capacityPercent;
return this;
}
public Float getTemperature() {
return temperature;
}
public BatteryChannel setTemperature(Float temperature) {
this.temperature = temperature;
return this;
}
public Integer getStatus() {
return status;
}
public BatteryChannel setStatus(Integer status) {
this.status = status;
return this;
}
public String getName() {
return name;
}
public BatteryChannel setName(String name) {
this.name = name;
return this;
}
}
...@@ -3,6 +3,8 @@ package com.dji.sdk.cloudapi.device; ...@@ -3,6 +3,8 @@ package com.dji.sdk.cloudapi.device;
import com.dji.sdk.annotations.CloudSDKVersion; import com.dji.sdk.annotations.CloudSDKVersion;
import com.dji.sdk.config.version.CloudSDKVersionEnum; import com.dji.sdk.config.version.CloudSDKVersionEnum;
import java.util.List;
/** /**
* @author sean * @author sean
* @version 1.3 * @version 1.3
...@@ -76,6 +78,9 @@ public class OsdDock { ...@@ -76,6 +78,9 @@ public class OsdDock {
private DroneBatteryMaintenanceInfo droneBatteryMaintenanceInfo; private DroneBatteryMaintenanceInfo droneBatteryMaintenanceInfo;
// 增加 机场 电池列表信息
private List<BatteryChannel> batteryChannels;
private FlighttaskStepCodeEnum flighttaskStepCode; private FlighttaskStepCodeEnum flighttaskStepCode;
private Integer flighttaskPrepareCapacity; private Integer flighttaskPrepareCapacity;
...@@ -130,6 +135,7 @@ public class OsdDock { ...@@ -130,6 +135,7 @@ public class OsdDock {
", workingVoltage=" + workingVoltage + ", workingVoltage=" + workingVoltage +
", workingCurrent=" + workingCurrent + ", workingCurrent=" + workingCurrent +
", backupBattery=" + backupBattery + ", backupBattery=" + backupBattery +
", batteryChannels=" + batteryChannels +
", droneBatteryMaintenanceInfo=" + droneBatteryMaintenanceInfo + ", droneBatteryMaintenanceInfo=" + droneBatteryMaintenanceInfo +
", flighttaskStepCode=" + flighttaskStepCode + ", flighttaskStepCode=" + flighttaskStepCode +
", flighttaskPrepareCapacity=" + flighttaskPrepareCapacity + ", flighttaskPrepareCapacity=" + flighttaskPrepareCapacity +
...@@ -428,6 +434,15 @@ public class OsdDock { ...@@ -428,6 +434,15 @@ public class OsdDock {
return this; return this;
} }
public List<BatteryChannel> getBatteryChannels() {
return batteryChannels;
}
public OsdDock setBatteryChannels(List<BatteryChannel> batteryChannels) {
this.batteryChannels = batteryChannels;
return this;
}
public DroneBatteryMaintenanceInfo getDroneBatteryMaintenanceInfo() { public DroneBatteryMaintenanceInfo getDroneBatteryMaintenanceInfo() {
return droneBatteryMaintenanceInfo; return droneBatteryMaintenanceInfo;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment