How to use the sbp.jit.msg.get_s32 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 / 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
    (__n, offset, length) = get_s32(buf, offset, length)
    ret['n'] = __n
    (__e, offset, length) = get_s32(buf, offset, length)
    ret['e'] = __e
    (__d, offset, length) = get_s32(buf, offset, length)
    ret['d'] = __d
    (__h_accuracy, offset, length) = get_u16(buf, offset, length)
    ret['h_accuracy'] = __h_accuracy
    (__v_accuracy, offset, length) = get_u16(buf, offset, length)
    ret['v_accuracy'] = __v_accuracy
    (__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 / piksi.py View on Github external
def parse_members(cls, buf, offset, length):
    ret = {}
    (__avg, offset, length) = get_s32(buf, offset, length)
    ret['avg'] = __avg
    (__lmin, offset, length) = get_s32(buf, offset, length)
    ret['lmin'] = __lmin
    (__lmax, offset, length) = get_s32(buf, offset, length)
    ret['lmax'] = __lmax
    (__current, offset, length) = get_s32(buf, offset, length)
    ret['current'] = __current
    return ret, offset, length
github swift-nav / libsbp / python / sbp / jit / acquisition.py View on Github external
ret['cn0'] = __cn0
    (__int_time, offset, length) = get_u8(buf, offset, length)
    ret['int_time'] = __int_time
    (__sid, offset, length) = GnssSignal.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
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 / gnss.py View on Github external
def parse_members(cls, buf, offset, length):
    ret = {}
    (__i, offset, length) = get_s32(buf, offset, length)
    ret['i'] = __i
    (__f, offset, length) = get_u8(buf, offset, length)
    ret['f'] = __f
    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
    (__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
    (__cov_x_x, offset, length) = get_f32(buf, offset, length)
    ret['cov_x_x'] = judicious_round(np.float32(__cov_x_x)) if SBP.judicious_rounding else __cov_x_x
    (__cov_x_y, offset, length) = get_f32(buf, offset, length)
    ret['cov_x_y'] = judicious_round(np.float32(__cov_x_y)) if SBP.judicious_rounding else __cov_x_y
    (__cov_x_z, offset, length) = get_f32(buf, offset, length)
    ret['cov_x_z'] = judicious_round(np.float32(__cov_x_z)) if SBP.judicious_rounding else __cov_x_z
    (__cov_y_y, offset, length) = get_f32(buf, offset, length)
    ret['cov_y_y'] = judicious_round(np.float32(__cov_y_y)) if SBP.judicious_rounding else __cov_y_y
    (__cov_y_z, offset, length) = get_f32(buf, offset, length)
    ret['cov_y_z'] = judicious_round(np.float32(__cov_y_z)) if SBP.judicious_rounding else __cov_y_z
    (__cov_z_z, offset, length) = get_f32(buf, offset, length)
github swift-nav / libsbp / python / sbp / jit / observation.py View on Github external
def parse_members(cls, buf, offset, length):
    ret = {}
    (__i, offset, length) = get_s32(buf, offset, length)
    ret['i'] = __i
    (__f, offset, length) = get_u8(buf, offset, length)
    ret['f'] = __f
    return ret, 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
github swift-nav / libsbp / python / sbp / jit / tracking.py View on Github external
def parse_members(cls, buf, offset, length):
    ret = {}
    (__I, offset, length) = get_s32(buf, offset, length)
    ret['I'] = __I
    (__Q, offset, length) = get_s32(buf, offset, length)
    ret['Q'] = __Q
    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 = {}
    (__I, offset, length) = get_s32(buf, offset, length)
    ret['I'] = __I
    (__Q, offset, length) = get_s32(buf, offset, length)
    ret['Q'] = __Q
    return ret, offset, length