How to use the sbp.jit.msg.get_u32 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 / linux.py View on Github external
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
github swift-nav / libsbp / python / sbp / jit / sbas.py View on Github external
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
github swift-nav / libsbp / python / sbp / jit / vehicle.py View on Github external
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
github swift-nav / libsbp / python / sbp / jit / navigation.py View on Github external
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
    return ret, offset, length
github swift-nav / libsbp / python / sbp / jit / orientation.py View on Github external
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
github swift-nav / libsbp / python / sbp / jit / ssr.py View on Github external
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)
github swift-nav / libsbp / python / sbp / jit / ext_events.py View on Github external
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