Пример #1
0
 def parse_members(cls, buf, offset, length):
     ret = {}
     (__hydro, offset, length) = get_s16(buf, offset, length)
     ret['hydro'] = __hydro
     (__wet, offset, length) = get_s8(buf, offset, length)
     ret['wet'] = __wet
     return ret, offset, length
Пример #2
0
 def parse_members(cls, buf, offset, length):
     ret = {}
     (__signal_strength, offset, length) = get_s8(buf, offset, length)
     ret['signal_strength'] = __signal_strength
     (__signal_error_rate, offset, length) = get_f32(buf, offset, length)
     ret['signal_error_rate'] = judicious_round(
         np.float32(__signal_error_rate)
     ) if SBP.judicious_rounding else __signal_error_rate
     (__reserved, offset, length) = get_array(get_u8)(buf, offset, length)
     ret['reserved'] = __reserved
     return ret, offset, length
Пример #3
0
 def parse_members(cls, buf, offset, length):
     ret = {}
     (__recv_time, offset, length) = get_u64(buf, offset, length)
     ret['recv_time'] = __recv_time
     (__tot, offset, length) = GPSTimeDep.parse_members(buf, offset, length)
     ret['tot'] = __tot
     (__P, offset, length) = get_u32(buf, offset, length)
     ret['P'] = __P
     (__P_std, offset, length) = get_u16(buf, offset, length)
     ret['P_std'] = __P_std
     (__L, offset, length) = CarrierPhase.parse_members(buf, offset, length)
     ret['L'] = __L
     (__cn0, offset, length) = get_u8(buf, offset, length)
     ret['cn0'] = __cn0
     (__lock, offset, length) = get_u16(buf, offset, length)
     ret['lock'] = __lock
     (__sid, offset,
      length) = GnssSignalDep.parse_members(buf, offset, length)
     ret['sid'] = __sid
     (__doppler, offset, length) = get_s32(buf, offset, length)
     ret['doppler'] = __doppler
     (__doppler_std, offset, length) = get_u16(buf, offset, length)
     ret['doppler_std'] = __doppler_std
     (__uptime, offset, length) = get_u32(buf, offset, length)
     ret['uptime'] = __uptime
     (__clock_offset, offset, length) = get_s16(buf, offset, length)
     ret['clock_offset'] = __clock_offset
     (__clock_drift, offset, length) = get_s16(buf, offset, length)
     ret['clock_drift'] = __clock_drift
     (__corr_spacing, offset, length) = get_u16(buf, offset, length)
     ret['corr_spacing'] = __corr_spacing
     (__acceleration, offset, length) = get_s8(buf, offset, length)
     ret['acceleration'] = __acceleration
     (__sync_flags, offset, length) = get_u8(buf, offset, length)
     ret['sync_flags'] = __sync_flags
     (__tow_flags, offset, length) = get_u8(buf, offset, length)
     ret['tow_flags'] = __tow_flags
     (__track_flags, offset, length) = get_u8(buf, offset, length)
     ret['track_flags'] = __track_flags
     (__nav_flags, offset, length) = get_u8(buf, offset, length)
     ret['nav_flags'] = __nav_flags
     (__pset_flags, offset, length) = get_u8(buf, offset, length)
     ret['pset_flags'] = __pset_flags
     (__misc_flags, offset, length) = get_u8(buf, offset, length)
     ret['misc_flags'] = __misc_flags
     return ret, offset, length
Пример #4
0
 def parse_members(cls, buf, offset, length):
   ret = {}
   (__time, offset, length) = GPSTimeSec.parse_members(buf, offset, length)
   ret['time'] = __time
   (__sid, offset, length) = GnssSignal.parse_members(buf, offset, length)
   ret['sid'] = __sid
   (__update_interval, offset, length) = get_u8(buf, offset, length)
   ret['update_interval'] = __update_interval
   (__iod_ssr, offset, length) = get_u8(buf, offset, length)
   ret['iod_ssr'] = __iod_ssr
   (__dispersive_bias, offset, length) = get_u8(buf, offset, length)
   ret['dispersive_bias'] = __dispersive_bias
   (__mw_consistency, offset, length) = get_u8(buf, offset, length)
   ret['mw_consistency'] = __mw_consistency
   (__yaw, offset, length) = get_u16(buf, offset, length)
   ret['yaw'] = __yaw
   (__yaw_rate, offset, length) = get_s8(buf, offset, length)
   ret['yaw_rate'] = __yaw_rate
   (__biases, offset, length) = get_array(PhaseBiasesContent.parse_members)(buf, offset, length)
   ret['biases'] = __biases
   return ret, offset, length