Commit 344f94b1fd9067bd8b5f6200af9feef5a64b084d
1 parent
ec6b33c4
燃料电池数据对接
Showing
1 changed file
with
11 additions
and
0 deletions
src/main/java/com/bsth/entity/VehicleLocationData.java
| @@ -32,6 +32,17 @@ public class VehicleLocationData extends Data { | @@ -32,6 +32,17 @@ public class VehicleLocationData extends Data { | ||
| 32 | 32 | ||
| 33 | 33 | ||
| 34 | public VehicleLocationData(Message0205 message0205){ | 34 | public VehicleLocationData(Message0205 message0205){ |
| 35 | + Byte infoTypeValue = message0205.getInfoType(); | ||
| 36 | + this.infoType = (infoTypeValue == null || infoTypeValue == (byte) 0xFF) ? (byte) 0x05 : infoTypeValue; | ||
| 37 | + | ||
| 38 | + // 定位状态 | ||
| 39 | + this.locationState = message0205.getLocationState(); | ||
| 40 | + | ||
| 41 | + // 经度 | ||
| 42 | + this.lon = message0205.getLon(); | ||
| 43 | + | ||
| 44 | + // 纬度 | ||
| 45 | + this.lat = message0205.getLat(); | ||
| 35 | 46 | ||
| 36 | 47 | ||
| 37 | } | 48 | } |