How to use the sbp.jit.msg.get_u8 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
ret['d'] = __d
    (__cov_n_n, offset, length) = get_f32(buf, offset, length)
    ret['cov_n_n'] = judicious_round(np.float32(__cov_n_n)) if SBP.judicious_rounding else __cov_n_n
    (__cov_n_e, offset, length) = get_f32(buf, offset, length)
    ret['cov_n_e'] = judicious_round(np.float32(__cov_n_e)) if SBP.judicious_rounding else __cov_n_e
    (__cov_n_d, offset, length) = get_f32(buf, offset, length)
    ret['cov_n_d'] = judicious_round(np.float32(__cov_n_d)) if SBP.judicious_rounding else __cov_n_d
    (__cov_e_e, offset, length) = get_f32(buf, offset, length)
    ret['cov_e_e'] = judicious_round(np.float32(__cov_e_e)) if SBP.judicious_rounding else __cov_e_e
    (__cov_e_d, offset, length) = get_f32(buf, offset, length)
    ret['cov_e_d'] = judicious_round(np.float32(__cov_e_d)) if SBP.judicious_rounding else __cov_e_d
    (__cov_d_d, offset, length) = get_f32(buf, offset, length)
    ret['cov_d_d'] = judicious_round(np.float32(__cov_d_d)) if SBP.judicious_rounding else __cov_d_d
    (__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
    (__dispersive_bias, offset, length) = get_u8(buf, offset, length)
    ret['dispersive_bias'] = __dispersive_bias
    (__mw_consistency, offset, length) = get_u8(buf, offset, length)
    ret['mw_consistency'] = __mw_consistency
    (__yaw, offset, length) = get_u16(buf, offset, length)
    ret['yaw'] = __yaw
    (__yaw_rate, offset, length) = get_s8(buf, offset, length)
    ret['yaw_rate'] = __yaw_rate
    (__biases, offset, length) = get_array(PhaseBiasesContent.parse_members)(buf, offset, length)
    ret['biases'] = __biases
    return ret, offset, length
github swift-nav / libsbp / python / sbp / jit / acquisition.py View on Github external
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)
github swift-nav / libsbp / python / sbp / jit / imu.py View on Github external
def parse_members(cls, buf, offset, length):
    ret = {}
    (__imu_type, offset, length) = get_u8(buf, offset, length)
    ret['imu_type'] = __imu_type
    (__temp, offset, length) = get_s16(buf, offset, length)
    ret['temp'] = __temp
    (__imu_conf, offset, length) = get_u8(buf, offset, length)
    ret['imu_conf'] = __imu_conf
    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 = {}
    (__index, offset, length) = get_u8(buf, offset, length)
    ret['index'] = __index
    (__pid, offset, length) = get_u16(buf, offset, length)
    ret['pid'] = __pid
    (__fd_count, offset, length) = get_u16(buf, offset, length)
    ret['fd_count'] = __fd_count
    (__cmdline, offset, length) = get_string(buf, offset, length)
    ret['cmdline'] = __cmdline
    return ret, offset, length
github swift-nav / libsbp / python / sbp / jit / observation.py View on Github external
def parse_members(cls, buf, offset, length):
    ret = {}
    (__mask, offset, length) = get_u8(buf, offset, length)
    ret['mask'] = __mask
    (__l1ca_bias, offset, length) = get_s16(buf, offset, length)
    ret['l1ca_bias'] = __l1ca_bias
    (__l1p_bias, offset, length) = get_s16(buf, offset, length)
    ret['l1p_bias'] = __l1p_bias
    (__l2ca_bias, offset, length) = get_s16(buf, offset, length)
    ret['l2ca_bias'] = __l2ca_bias
    (__l2p_bias, offset, length) = get_s16(buf, offset, length)
    ret['l2p_bias'] = __l2p_bias
    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 = {}
    (__index, offset, length) = get_u8(buf, offset, length)
    ret['index'] = __index
    (__pid, offset, length) = get_u16(buf, offset, length)
    ret['pid'] = __pid
    (__pcpu, offset, length) = get_u8(buf, offset, length)
    ret['pcpu'] = __pcpu
    (__tname, offset, length) = get_fixed_string(15)(buf, offset, length)
    ret['tname'] = __tname
    (__cmdline, offset, length) = get_string(buf, offset, length)
    ret['cmdline'] = __cmdline
    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 = {}
    (__target, offset, length) = get_u8(buf, offset, length)
    ret['target'] = __target
    (__addr_start, offset, length) = get_fixed_array(get_u8, 3, 1)(buf, offset, length)
    ret['addr_start'] = __addr_start
    (__addr_len, offset, length) = get_u8(buf, offset, length)
    ret['addr_len'] = __addr_len
    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 = {}
    (__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