How to use the sbp.jit.msg.get_u16 function in sbp

To help you get started, we’ve selected a few sbp examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github swift-nav / libsbp / python / sbp / jit / ssr.py View on Github external
def parse_members(cls, buf, offset, length):
    ret = {}
    (__index, offset, length) = get_u16(buf, offset, length)
    ret['index'] = __index
    (__tropo_delay_correction, offset, length) = TroposphericDelayCorrection.parse_members(buf, offset, length)
    ret['tropo_delay_correction'] = __tropo_delay_correction
    (__stec_residuals, offset, length) = get_array(STECResidual.parse_members)(buf, offset, length)
    ret['stec_residuals'] = __stec_residuals
    return ret, offset, length
github swift-nav / libsbp / python / sbp / jit / ndb.py View on Github external
ret = {}
    (__recv_time, offset, length) = get_u64(buf, offset, length)
    ret['recv_time'] = __recv_time
    (__event, offset, length) = get_u8(buf, offset, length)
    ret['event'] = __event
    (__object_type, offset, length) = get_u8(buf, offset, length)
    ret['object_type'] = __object_type
    (__result, offset, length) = get_u8(buf, offset, length)
    ret['result'] = __result
    (__data_source, offset, length) = get_u8(buf, offset, length)
    ret['data_source'] = __data_source
    (__object_sid, offset, length) = GnssSignal.parse_members(buf, offset, length)
    ret['object_sid'] = __object_sid
    (__src_sid, offset, length) = GnssSignal.parse_members(buf, offset, length)
    ret['src_sid'] = __src_sid
    (__original_sender, offset, length) = get_u16(buf, offset, length)
    ret['original_sender'] = __original_sender
    return ret, offset, length
github swift-nav / libsbp / python / sbp / jit / navigation.py View on Github external
def parse_members(cls, buf, offset, length):
    ret = {}
    (__tow, offset, length) = get_u32(buf, offset, length)
    ret['tow'] = __tow
    (__gdop, offset, length) = get_u16(buf, offset, length)
    ret['gdop'] = __gdop
    (__pdop, offset, length) = get_u16(buf, offset, length)
    ret['pdop'] = __pdop
    (__tdop, offset, length) = get_u16(buf, offset, length)
    ret['tdop'] = __tdop
    (__hdop, offset, length) = get_u16(buf, offset, length)
    ret['hdop'] = __hdop
    (__vdop, offset, length) = get_u16(buf, offset, length)
    ret['vdop'] = __vdop
    (__flags, offset, length) = get_u8(buf, offset, length)
    ret['flags'] = __flags
    return ret, offset, length
github swift-nav / libsbp / python / sbp / jit / settings.py View on Github external
def parse_members(cls, buf, offset, length):
    ret = {}
    (__index, offset, length) = get_u16(buf, offset, length)
    ret['index'] = __index
    (__setting, offset, length) = get_setting(buf, offset, length)
    ret['setting'] = __setting
    return ret, offset, length
github swift-nav / libsbp / python / sbp / jit / observation.py View on Github external
ret['inc'] = __inc
    (__inc_dot, offset, length) = get_f64(buf, offset, length)
    ret['inc_dot'] = __inc_dot
    (__af0, offset, length) = get_f64(buf, offset, length)
    ret['af0'] = __af0
    (__af1, offset, length) = get_f64(buf, offset, length)
    ret['af1'] = __af1
    (__af2, offset, length) = get_f64(buf, offset, length)
    ret['af2'] = __af2
    (__toe_tow, offset, length) = get_f64(buf, offset, length)
    ret['toe_tow'] = __toe_tow
    (__toe_wn, offset, length) = get_u16(buf, offset, length)
    ret['toe_wn'] = __toe_wn
    (__toc_tow, offset, length) = get_f64(buf, offset, length)
    ret['toc_tow'] = __toc_tow
    (__toc_wn, offset, length) = get_u16(buf, offset, length)
    ret['toc_wn'] = __toc_wn
    (__valid, offset, length) = get_u8(buf, offset, length)
    ret['valid'] = __valid
    (__healthy, offset, length) = get_u8(buf, offset, length)
    ret['healthy'] = __healthy
    (__sid, offset, length) = GnssSignalDep.parse_members(buf, offset, length)
    ret['sid'] = __sid
    (__iode, offset, length) = get_u8(buf, offset, length)
    ret['iode'] = __iode
    (__iodc, offset, length) = get_u16(buf, offset, length)
    ret['iodc'] = __iodc
    (__reserved, offset, length) = get_u32(buf, offset, length)
    ret['reserved'] = __reserved
    return ret, offset, length
github swift-nav / libsbp / python / sbp / jit / piksi.py View on Github external
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
github swift-nav / libsbp / python / sbp / jit / linux.py View on Github external
def parse_members(cls, buf, offset, length):
    ret = {}
    (__mem_total, offset, length) = get_u16(buf, offset, length)
    ret['mem_total'] = __mem_total
    (__pcpu, offset, length) = get_u8(buf, offset, length)
    ret['pcpu'] = __pcpu
    (__pmem, offset, length) = get_u8(buf, offset, length)
    ret['pmem'] = __pmem
    (__procs_starting, offset, length) = get_u16(buf, offset, length)
    ret['procs_starting'] = __procs_starting
    (__procs_stopping, offset, length) = get_u16(buf, offset, length)
    ret['procs_stopping'] = __procs_stopping
    (__pid_count, offset, length) = get_u16(buf, offset, length)
    ret['pid_count'] = __pid_count
    return ret, offset, length
github swift-nav / libsbp / python / sbp / jit / tracking.py View on Github external
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)
github swift-nav / libsbp / python / sbp / jit / observation.py View on Github external
def parse_members(cls, buf, offset, length):
    ret = {}
    (__P, offset, length) = get_u32(buf, offset, length)
    ret['P'] = __P
    (__L, offset, length) = CarrierPhase.parse_members(buf, offset, length)
    ret['L'] = __L
    (__lock, offset, length) = get_u8(buf, offset, length)
    ret['lock'] = __lock
    (__flags, offset, length) = get_u8(buf, offset, length)
    ret['flags'] = __flags
    (__sid, offset, length) = GnssSignal.parse_members(buf, offset, length)
    ret['sid'] = __sid
    (__iono_std, offset, length) = get_u16(buf, offset, length)
    ret['iono_std'] = __iono_std
    (__tropo_std, offset, length) = get_u16(buf, offset, length)
    ret['tropo_std'] = __tropo_std
    (__range_std, offset, length) = get_u16(buf, offset, length)
    ret['range_std'] = __range_std
    return ret, offset, length