ncc协议x
This commit is contained in:
parent
624d2715f7
commit
94b37287ab
@ -1,6 +1,7 @@
|
||||
package club.joylink.xiannccda.ats.message.convertor;
|
||||
|
||||
import club.joylink.xiannccda.ats.message.rep.device.DeviceStatus;
|
||||
|
||||
import club.joylink.xiannccda.ats.message.line3.device.DeviceStatus;
|
||||
import club.joylink.xiannccda.dto.protos.DeviceStatusProto;
|
||||
import com.google.protobuf.GeneratedMessageV3;
|
||||
|
||||
@ -15,7 +16,7 @@ public class DeviceStatusConvertor {
|
||||
* Track状态proto
|
||||
*/
|
||||
public static void convertForTrack(final int statusBitMap,final DeviceStatusProto.Track.Builder to) throws Exception {
|
||||
convert(DeviceStatus.TRACK.class,statusBitMap,to);
|
||||
convert(DeviceStatus.TRACK.class, statusBitMap, to);
|
||||
final int SPEED_LIMIT_MASK = 0xff000000;
|
||||
final int SPEED_LIMIT_TYPE_MASK = 0x00f00000;
|
||||
final int speedLimit = (statusBitMap&SPEED_LIMIT_MASK)>>24;
|
||||
|
Loading…
Reference in New Issue
Block a user