Ejemplo n.º 1
0
 def parse_members(cls, buf, offset, length):
     ret = {}
     (__job_type, offset, length) = get_u8(buf, offset, length)
     ret['job_type'] = __job_type
     (__status, offset, length) = get_u8(buf, offset, length)
     ret['status'] = __status
     (__cn0, offset, length) = get_u16(buf, offset, length)
     ret['cn0'] = __cn0
     (__int_time, offset, length) = get_u8(buf, offset, length)
     ret['int_time'] = __int_time
     (__sid, offset,
      length) = GnssSignalDep.parse_members(buf, offset, length)
     ret['sid'] = __sid
     (__bin_width, offset, length) = get_u16(buf, offset, length)
     ret['bin_width'] = __bin_width
     (__timestamp, offset, length) = get_u32(buf, offset, length)
     ret['timestamp'] = __timestamp
     (__time_spent, offset, length) = get_u32(buf, offset, length)
     ret['time_spent'] = __time_spent
     (__cf_min, offset, length) = get_s32(buf, offset, length)
     ret['cf_min'] = __cf_min
     (__cf_max, offset, length) = get_s32(buf, offset, length)
     ret['cf_max'] = __cf_max
     (__cf, offset, length) = get_s32(buf, offset, length)
     ret['cf'] = __cf
     (__cp, offset, length) = get_u32(buf, offset, length)
     ret['cp'] = __cp
     return ret, offset, length
Ejemplo n.º 2
0
 def parse_members(cls, buf, offset, length):
     ret = {}
     (__pdop, offset, length) = get_u16(buf, offset, length)
     ret['pdop'] = __pdop
     (__hdop, offset, length) = get_u16(buf, offset, length)
     ret['hdop'] = __hdop
     (__vdop, offset, length) = get_u16(buf, offset, length)
     ret['vdop'] = __vdop
     (__n_sats, offset, length) = get_u8(buf, offset, length)
     ret['n_sats'] = __n_sats
     (__age_corrections, offset, length) = get_u16(buf, offset, length)
     ret['age_corrections'] = __age_corrections
     (__alignment_status, offset, length) = get_u8(buf, offset, length)
     ret['alignment_status'] = __alignment_status
     (__last_used_gnss_pos_tow, offset,
      length) = get_u32(buf, offset, length)
     ret['last_used_gnss_pos_tow'] = __last_used_gnss_pos_tow
     (__last_used_gnss_vel_tow, offset,
      length) = get_u32(buf, offset, length)
     ret['last_used_gnss_vel_tow'] = __last_used_gnss_vel_tow
     (__sol_in, offset,
      length) = get_array(SolutionInputType.parse_members)(buf, offset,
                                                           length)
     ret['sol_in'] = __sol_in
     return ret, offset, length
Ejemplo n.º 3
0
 def parse_members(cls, buf, offset, length):
     ret = {}
     (__sequence, offset, length) = get_u32(buf, offset, length)
     ret['sequence'] = __sequence
     (__offset, offset, length) = get_u32(buf, offset, length)
     ret['offset'] = __offset
     (__dirname, offset, length) = get_string(buf, offset, length)
     ret['dirname'] = __dirname
     return ret, offset, length
Ejemplo n.º 4
0
 def parse_members(cls, buf, offset, length):
     ret = {}
     (__sequence, offset, length) = get_u32(buf, offset, length)
     ret['sequence'] = __sequence
     (__window_size, offset, length) = get_u32(buf, offset, length)
     ret['window_size'] = __window_size
     (__batch_size, offset, length) = get_u32(buf, offset, length)
     ret['batch_size'] = __batch_size
     (__fileio_version, offset, length) = get_u32(buf, offset, length)
     ret['fileio_version'] = __fileio_version
     return ret, offset, length
Ejemplo n.º 5
0
 def parse_members(cls, buf, offset, length):
     ret = {}
     (__sequence, offset, length) = get_u32(buf, offset, length)
     ret['sequence'] = __sequence
     (__offset, offset, length) = get_u32(buf, offset, length)
     ret['offset'] = __offset
     (__chunk_size, offset, length) = get_u8(buf, offset, length)
     ret['chunk_size'] = __chunk_size
     (__filename, offset, length) = get_string(buf, offset, length)
     ret['filename'] = __filename
     return ret, offset, length
Ejemplo n.º 6
0
 def parse_members(cls, buf, offset, length):
     ret = {}
     (__sequence, offset, length) = get_u32(buf, offset, length)
     ret['sequence'] = __sequence
     (__offset, offset, length) = get_u32(buf, offset, length)
     ret['offset'] = __offset
     (__filename, offset, length) = get_string(buf, offset, length)
     ret['filename'] = __filename
     (__data, offset, length) = get_array(get_u8)(buf, offset, length)
     ret['data'] = __data
     return ret, offset, length
Ejemplo n.º 7
0
 def parse_members(cls, buf, offset, length):
     ret = {}
     (__tow, offset, length) = get_u32(buf, offset, length)
     ret['tow'] = __tow
     (__heading, offset, length) = get_u32(buf, offset, length)
     ret['heading'] = __heading
     (__n_sats, offset, length) = get_u8(buf, offset, length)
     ret['n_sats'] = __n_sats
     (__flags, offset, length) = get_u8(buf, offset, length)
     ret['flags'] = __flags
     return ret, offset, length
Ejemplo n.º 8
0
 def parse_members(cls, buf, offset, length):
   ret = {}
   (__avg_queue_depth, offset, length) = get_u32(buf, offset, length)
   ret['avg_queue_depth'] = __avg_queue_depth
   (__max_queue_depth, offset, length) = get_u32(buf, offset, length)
   ret['max_queue_depth'] = __max_queue_depth
   (__socket_state_counts, offset, length) = get_fixed_array(get_u16, 16, 2)(buf, offset, length)
   ret['socket_state_counts'] = __socket_state_counts
   (__socket_type_counts, offset, length) = get_fixed_array(get_u16, 16, 2)(buf, offset, length)
   ret['socket_type_counts'] = __socket_type_counts
   return ret, offset, length
Ejemplo n.º 9
0
 def parse_members(cls, buf, offset, length):
     ret = {}
     (__duration, offset, length) = get_u64(buf, offset, length)
     ret['duration'] = __duration
     (__total_bytes, offset, length) = get_u64(buf, offset, length)
     ret['total_bytes'] = __total_bytes
     (__rx_bytes, offset, length) = get_u32(buf, offset, length)
     ret['rx_bytes'] = __rx_bytes
     (__tx_bytes, offset, length) = get_u32(buf, offset, length)
     ret['tx_bytes'] = __tx_bytes
     (__interface_name, offset, length) = get_fixed_string(16)(buf, offset,
                                                               length)
     ret['interface_name'] = __interface_name
     return ret, offset, length
Ejemplo n.º 10
0
 def parse_members(cls, buf, offset, length):
     ret = {}
     (__reporting_system, offset, length) = get_u16(buf, offset, length)
     ret['reporting_system'] = __reporting_system
     (__sbp_version, offset, length) = get_u16(buf, offset, length)
     ret['sbp_version'] = __sbp_version
     (__sequence, offset, length) = get_u32(buf, offset, length)
     ret['sequence'] = __sequence
     (__uptime, offset, length) = get_u32(buf, offset, length)
     ret['uptime'] = __uptime
     (__status, offset,
      length) = get_array(SubSystemReport.parse_members)(buf, offset,
                                                         length)
     ret['status'] = __status
     return ret, offset, length
Ejemplo n.º 11
0
 def parse_members(cls, buf, offset, length):
     ret = {}
     (__tow, offset, length) = get_u32(buf, offset, length)
     ret['tow'] = __tow
     (__w, offset, length) = get_s32(buf, offset, length)
     ret['w'] = __w
     (__x, offset, length) = get_s32(buf, offset, length)
     ret['x'] = __x
     (__y, offset, length) = get_s32(buf, offset, length)
     ret['y'] = __y
     (__z, offset, length) = get_s32(buf, offset, length)
     ret['z'] = __z
     (__w_accuracy, offset, length) = get_f32(buf, offset, length)
     ret['w_accuracy'] = judicious_round(np.float32(
         __w_accuracy)) if SBP.judicious_rounding else __w_accuracy
     (__x_accuracy, offset, length) = get_f32(buf, offset, length)
     ret['x_accuracy'] = judicious_round(np.float32(
         __x_accuracy)) if SBP.judicious_rounding else __x_accuracy
     (__y_accuracy, offset, length) = get_f32(buf, offset, length)
     ret['y_accuracy'] = judicious_round(np.float32(
         __y_accuracy)) if SBP.judicious_rounding else __y_accuracy
     (__z_accuracy, offset, length) = get_f32(buf, offset, length)
     ret['z_accuracy'] = judicious_round(np.float32(
         __z_accuracy)) if SBP.judicious_rounding else __z_accuracy
     (__flags, offset, length) = get_u8(buf, offset, length)
     ret['flags'] = __flags
     return ret, offset, length
Ejemplo n.º 12
0
 def parse_members(cls, buf, offset, length):
     ret = {}
     (__flags, offset, length) = get_u32(buf, offset, length)
     ret['flags'] = __flags
     (__version, offset, length) = get_string(buf, offset, length)
     ret['version'] = __version
     return ret, offset, length
Ejemplo n.º 13
0
 def parse_members(cls, buf, offset, length):
     ret = {}
     (__sequence, offset, length) = get_u32(buf, offset, length)
     ret['sequence'] = __sequence
     (__contents, offset, length) = get_array(get_u8)(buf, offset, length)
     ret['contents'] = __contents
     return ret, offset, length
Ejemplo n.º 14
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
     (__iod, offset, length) = get_u32(buf, offset, length)
     ret['iod'] = __iod
     (__radial, offset, length) = get_s32(buf, offset, length)
     ret['radial'] = __radial
     (__along, offset, length) = get_s32(buf, offset, length)
     ret['along'] = __along
     (__cross, offset, length) = get_s32(buf, offset, length)
     ret['cross'] = __cross
     (__dot_radial, offset, length) = get_s32(buf, offset, length)
     ret['dot_radial'] = __dot_radial
     (__dot_along, offset, length) = get_s32(buf, offset, length)
     ret['dot_along'] = __dot_along
     (__dot_cross, offset, length) = get_s32(buf, offset, length)
     ret['dot_cross'] = __dot_cross
     (__c0, offset, length) = get_s32(buf, offset, length)
     ret['c0'] = __c0
     (__c1, offset, length) = get_s32(buf, offset, length)
     ret['c1'] = __c1
     (__c2, offset, length) = get_s32(buf, offset, length)
     ret['c2'] = __c2
     return ret, offset, length
Ejemplo n.º 15
0
 def parse_members(cls, buf, offset, length):
     ret = {}
     (__sys_fd_count, offset, length) = get_u32(buf, offset, length)
     ret['sys_fd_count'] = __sys_fd_count
     (__most_opened, offset, length) = get_string(buf, offset, length)
     ret['most_opened'] = __most_opened
     return ret, offset, length
Ejemplo n.º 16
0
 def parse_members(cls, buf, offset, length):
     ret = {}
     (__tow, offset, length) = get_u32(buf, offset, length)
     ret['tow'] = __tow
     (__wn, offset, length) = get_u16(buf, offset, length)
     ret['wn'] = __wn
     return ret, offset, length
Ejemplo n.º 17
0
 def parse_members(cls, buf, offset, length):
     ret = {}
     (__sequence, offset, length) = get_u32(buf, offset, length)
     ret['sequence'] = __sequence
     (__line, offset, length) = get_string(buf, offset, length)
     ret['line'] = __line
     return ret, offset, length
Ejemplo n.º 18
0
 def parse_members(cls, buf, offset, length):
     ret = {}
     (__sequence, offset, length) = get_u32(buf, offset, length)
     ret['sequence'] = __sequence
     (__command, offset, length) = get_string(buf, offset, length)
     ret['command'] = __command
     return ret, offset, length
Ejemplo n.º 19
0
 def parse_members(cls, buf, offset, length):
     ret = {}
     (__sequence, offset, length) = get_u32(buf, offset, length)
     ret['sequence'] = __sequence
     (__code, offset, length) = get_s32(buf, offset, length)
     ret['code'] = __code
     return ret, offset, length
Ejemplo n.º 20
0
 def parse_members(cls, buf, offset, length):
     ret = {}
     (__target, offset, length) = get_u8(buf, offset, length)
     ret['target'] = __target
     (__sector_num, offset, length) = get_u32(buf, offset, length)
     ret['sector_num'] = __sector_num
     return ret, offset, length
Ejemplo n.º 21
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
Ejemplo n.º 22
0
 def parse_members(cls, buf, offset, length):
   ret = {}
   (__tow, offset, length) = get_u32(buf, offset, length)
   ret['tow'] = __tow
   (__velocity, offset, length) = get_s32(buf, offset, length)
   ret['velocity'] = __velocity
   (__flags, offset, length) = get_u8(buf, offset, length)
   ret['flags'] = __flags
   return ret, offset, length
Ejemplo n.º 23
0
 def parse_members(cls, buf, offset, length):
     ret = {}
     (__name, offset, length) = get_fixed_string(20)(buf, offset, length)
     ret['name'] = __name
     (__cpu, offset, length) = get_u16(buf, offset, length)
     ret['cpu'] = __cpu
     (__stack_free, offset, length) = get_u32(buf, offset, length)
     ret['stack_free'] = __stack_free
     return ret, offset, length
Ejemplo n.º 24
0
 def parse_members(cls, buf, offset, length):
     ret = {}
     (__tow, offset, length) = get_u32(buf, offset, length)
     ret['tow'] = __tow
     (__pdop, offset, length) = get_u16(buf, offset, length)
     ret['pdop'] = __pdop
     (__hdop, offset, length) = get_u16(buf, offset, length)
     ret['hdop'] = __hdop
     (__vdop, offset, length) = get_u16(buf, offset, length)
     ret['vdop'] = __vdop
     (__age_corrections, offset, length) = get_u16(buf, offset, length)
     ret['age_corrections'] = __age_corrections
     (__age_gnss, offset, length) = get_u32(buf, offset, length)
     ret['age_gnss'] = __age_gnss
     (__sol_in, offset,
      length) = get_array(SolutionInputType.parse_members)(buf, offset,
                                                           length)
     ret['sol_in'] = __sol_in
     return ret, offset, length
Ejemplo n.º 25
0
 def parse_members(cls, buf, offset, length):
     ret = {}
     (__sid, offset, length) = GnssSignal.parse_members(buf, offset, length)
     ret['sid'] = __sid
     (__tow, offset, length) = get_u32(buf, offset, length)
     ret['tow'] = __tow
     (__message_type, offset, length) = get_u8(buf, offset, length)
     ret['message_type'] = __message_type
     (__data, offset, length) = get_fixed_array(get_u8, 27, 1)(buf, offset,
                                                               length)
     ret['data'] = __data
     return ret, offset, length
Ejemplo n.º 26
0
 def parse_members(cls, buf, offset, length):
     ret = {}
     (__tow, offset, length) = get_u32(buf, offset, length)
     ret['tow'] = __tow
     (__tow_f, offset, length) = get_u8(buf, offset, length)
     ret['tow_f'] = __tow_f
     (__mag_x, offset, length) = get_s16(buf, offset, length)
     ret['mag_x'] = __mag_x
     (__mag_y, offset, length) = get_s16(buf, offset, length)
     ret['mag_y'] = __mag_y
     (__mag_z, offset, length) = get_s16(buf, offset, length)
     ret['mag_z'] = __mag_z
     return ret, offset, length
Ejemplo n.º 27
0
 def parse_members(cls, buf, offset, length):
     ret = {}
     (__tow, offset, length) = get_u32(buf, offset, length)
     ret['tow'] = __tow
     (__x, offset, length) = get_s32(buf, offset, length)
     ret['x'] = __x
     (__y, offset, length) = get_s32(buf, offset, length)
     ret['y'] = __y
     (__z, offset, length) = get_s32(buf, offset, length)
     ret['z'] = __z
     (__flags, offset, length) = get_u8(buf, offset, length)
     ret['flags'] = __flags
     return ret, offset, length
Ejemplo n.º 28
0
 def parse_members(cls, buf, offset, length):
     ret = {}
     (__wn, offset, length) = get_u16(buf, offset, length)
     ret['wn'] = __wn
     (__tow, offset, length) = get_u32(buf, offset, length)
     ret['tow'] = __tow
     (__ns_residual, offset, length) = get_s32(buf, offset, length)
     ret['ns_residual'] = __ns_residual
     (__flags, offset, length) = get_u8(buf, offset, length)
     ret['flags'] = __flags
     (__pin, offset, length) = get_u8(buf, offset, length)
     ret['pin'] = __pin
     return ret, offset, length
Ejemplo n.º 29
0
 def parse_members(cls, buf, offset, length):
     ret = {}
     (__ipv4_address, offset, length) = get_fixed_array(get_u8, 4,
                                                        1)(buf, offset,
                                                           length)
     ret['ipv4_address'] = __ipv4_address
     (__ipv4_mask_size, offset, length) = get_u8(buf, offset, length)
     ret['ipv4_mask_size'] = __ipv4_mask_size
     (__ipv6_address, offset, length) = get_fixed_array(get_u8, 16,
                                                        1)(buf, offset,
                                                           length)
     ret['ipv6_address'] = __ipv6_address
     (__ipv6_mask_size, offset, length) = get_u8(buf, offset, length)
     ret['ipv6_mask_size'] = __ipv6_mask_size
     (__rx_bytes, offset, length) = get_u32(buf, offset, length)
     ret['rx_bytes'] = __rx_bytes
     (__tx_bytes, offset, length) = get_u32(buf, offset, length)
     ret['tx_bytes'] = __tx_bytes
     (__interface_name, offset, length) = get_fixed_string(16)(buf, offset,
                                                               length)
     ret['interface_name'] = __interface_name
     (__flags, offset, length) = get_u32(buf, offset, length)
     ret['flags'] = __flags
     return ret, offset, length
Ejemplo n.º 30
0
 def parse_members(cls, buf, offset, length):
     ret = {}
     (__tow, offset, length) = get_u32(buf, offset, length)
     ret['tow'] = __tow
     (__gnsspos, offset, length) = get_u8(buf, offset, length)
     ret['gnsspos'] = __gnsspos
     (__gnssvel, offset, length) = get_u8(buf, offset, length)
     ret['gnssvel'] = __gnssvel
     (__wheelticks, offset, length) = get_u8(buf, offset, length)
     ret['wheelticks'] = __wheelticks
     (__speed, offset, length) = get_u8(buf, offset, length)
     ret['speed'] = __speed
     (__nhc, offset, length) = get_u8(buf, offset, length)
     ret['nhc'] = __nhc
     (__zerovel, offset, length) = get_u8(buf, offset, length)
     ret['zerovel'] = __zerovel
     return ret, offset, length