package gecaoji;
|
import Mqttmessage.Entity.GPSData.IMUData;
|
|
public class Getgecaojiimu_data {
|
public static void parseStatus(IMUData status) {
|
if (status != null) {
|
Device device = Device.getGecaoji();
|
if (device == null) {
|
return;
|
}
|
|
if (status.getPitch() != null) {
|
device.setPitch(String.valueOf(status.getPitch()));
|
}
|
if (status.getRoll() != null) {
|
device.setRoll(String.valueOf(status.getRoll()));
|
}
|
if (status.getYaw() != null) {
|
device.setYaw(String.valueOf(status.getYaw()));
|
}
|
}
|
}
|
}
|