How to use the sbp.jit.msg.get_fixed_array 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 / observation.py View on Github external
def parse_members(cls, buf, offset, length):
    ret = {}
    (__common, offset, length) = EphemerisCommonContentDepB.parse_members(buf, offset, length)
    ret['common'] = __common
    (__gamma, offset, length) = get_f64(buf, offset, length)
    ret['gamma'] = __gamma
    (__tau, offset, length) = get_f64(buf, offset, length)
    ret['tau'] = __tau
    (__pos, offset, length) = get_fixed_array(get_f64, 3, 8)(buf, offset, length)
    ret['pos'] = __pos
    (__vel, offset, length) = get_fixed_array(get_f64, 3, 8)(buf, offset, length)
    ret['vel'] = __vel
    (__acc, offset, length) = get_fixed_array(get_f64, 3, 8)(buf, offset, length)
    ret['acc'] = __acc
    return ret, offset, length
github swift-nav / libsbp / python / sbp / jit / flash.py View on Github external
def parse_members(cls, buf, offset, length):
    ret = {}
    (__status, offset, length) = get_fixed_array(get_u8, 1, 1)(buf, offset, length)
    ret['status'] = __status
    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 / tracking.py View on Github external
def parse_members(cls, buf, offset, length):
    ret = {}
    (__channel, offset, length) = get_u8(buf, offset, length)
    ret['channel'] = __channel
    (__sid, offset, length) = GnssSignal.parse_members(buf, offset, length)
    ret['sid'] = __sid
    (__corrs, offset, length) = get_fixed_array(TrackingChannelCorrelation._unpack_members, 3, TrackingChannelCorrelation._payload_size())(buf, offset, length)
    ret['corrs'] = __corrs
    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 = {}
    (__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 / ssr.py View on Github external
def parse_members(cls, buf, offset, length):
    ret = {}
    (__sv_id, offset, length) = SvId.parse_members(buf, offset, length)
    ret['sv_id'] = __sv_id
    (__stec_quality_indicator, offset, length) = get_u8(buf, offset, length)
    ret['stec_quality_indicator'] = __stec_quality_indicator
    (__stec_coeff, offset, length) = get_fixed_array(get_s16, 4, 2)(buf, offset, length)
    ret['stec_coeff'] = __stec_coeff
    return ret, offset, length
github swift-nav / libsbp / python / sbp / jit / bootload.py View on Github external
def parse_members(cls, buf, offset, length):
    ret = {}
    (__dna, offset, length) = get_fixed_array(get_u8, 8, 1)(buf, offset, length)
    ret['dna'] = __dna
    return ret, offset, length