Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, sbp=None, **kwargs):
if sbp:
super( MsgSettingsReadResp,
self).__init__(sbp.msg_type, sbp.sender, sbp.length,
sbp.payload, sbp.crc)
self.from_binary(sbp.payload)
else:
super( MsgSettingsReadResp, self).__init__()
self.msg_type = SBP_MSG_SETTINGS_READ_RESP
self.sender = kwargs.pop('sender', SENDER_ID)
self.setting = kwargs.pop('setting')
def __init__(self, sbp=None, **kwargs):
if sbp:
super( MsgInsStatus,
self).__init__(sbp.msg_type, sbp.sender, sbp.length,
sbp.payload, sbp.crc)
self.from_binary(sbp.payload)
else:
super( MsgInsStatus, self).__init__()
self.msg_type = SBP_MSG_INS_STATUS
self.sender = kwargs.pop('sender', SENDER_ID)
self.flags = kwargs.pop('flags')
def __init__(self, sbp=None, **kwargs):
if sbp:
super( MsgTrackingStateDepB,
self).__init__(sbp.msg_type, sbp.sender, sbp.length,
sbp.payload, sbp.crc)
self.from_binary(sbp.payload)
else:
super( MsgTrackingStateDepB, self).__init__()
self.msg_type = SBP_MSG_TRACKING_STATE_DEP_B
self.sender = kwargs.pop('sender', SENDER_ID)
self.states = kwargs.pop('states')
def __init__(self, sbp=None, **kwargs):
if sbp:
super( MsgSsrStecCorrection,
self).__init__(sbp.msg_type, sbp.sender, sbp.length,
sbp.payload, sbp.crc)
self.from_binary(sbp.payload)
else:
super( MsgSsrStecCorrection, self).__init__()
self.msg_type = SBP_MSG_SSR_STEC_CORRECTION
self.sender = kwargs.pop('sender', SENDER_ID)
self.header = kwargs.pop('header')
self.stec_sat_list = kwargs.pop('stec_sat_list')
def __init__(self, sbp=None, **kwargs):
if sbp:
super( MsgLog,
self).__init__(sbp.msg_type, sbp.sender, sbp.length,
sbp.payload, sbp.crc)
self.from_binary(sbp.payload)
else:
super( MsgLog, self).__init__()
self.msg_type = SBP_MSG_LOG
self.sender = kwargs.pop('sender', SENDER_ID)
self.level = kwargs.pop('level')
self.text = kwargs.pop('text')
def __init__(self, sbp=None, **kwargs):
if sbp:
super( MsgEphemerisDeprecated,
self).__init__(sbp.msg_type, sbp.sender, sbp.length,
sbp.payload, sbp.crc)
self.from_binary(sbp.payload)
else:
super( MsgEphemerisDeprecated, self).__init__()
self.msg_type = SBP_MSG_EPHEMERIS_DEPRECATED
self.sender = kwargs.pop('sender', SENDER_ID)
self.tgd = kwargs.pop('tgd')
self.c_rs = kwargs.pop('c_rs')
self.c_rc = kwargs.pop('c_rc')
self.c_uc = kwargs.pop('c_uc')
self.c_us = kwargs.pop('c_us')
self.c_ic = kwargs.pop('c_ic')
self.c_is = kwargs.pop('c_is')
self.dn = kwargs.pop('dn')
self.m0 = kwargs.pop('m0')
self.ecc = kwargs.pop('ecc')
self.sqrta = kwargs.pop('sqrta')
self.omega0 = kwargs.pop('omega0')
self.omegadot = kwargs.pop('omegadot')
self.w = kwargs.pop('w')
self.inc = kwargs.pop('inc')
self.inc_dot = kwargs.pop('inc_dot')
def __init__(self, sbp=None, **kwargs):
if sbp:
super( MsgUserData,
self).__init__(sbp.msg_type, sbp.sender, sbp.length,
sbp.payload, sbp.crc)
self.from_binary(sbp.payload)
else:
super( MsgUserData, self).__init__()
self.msg_type = SBP_MSG_USER_DATA
self.sender = kwargs.pop('sender', SENDER_ID)
self.contents = kwargs.pop('contents')
def __init__(self, sbp=None, **kwargs):
if sbp:
super( MsgExtEvent,
self).__init__(sbp.msg_type, sbp.sender, sbp.length,
sbp.payload, sbp.crc)
self.from_binary(sbp.payload)
else:
super( MsgExtEvent, self).__init__()
self.msg_type = SBP_MSG_EXT_EVENT
self.sender = kwargs.pop('sender', SENDER_ID)
self.wn = kwargs.pop('wn')
self.tow = kwargs.pop('tow')
self.ns_residual = kwargs.pop('ns_residual')
self.flags = kwargs.pop('flags')
self.pin = kwargs.pop('pin')
def __init__(self, sbp=None, **kwargs):
if sbp:
super( MsgFileioRemove,
self).__init__(sbp.msg_type, sbp.sender, sbp.length,
sbp.payload, sbp.crc)
self.from_binary(sbp.payload)
else:
super( MsgFileioRemove, self).__init__()
self.msg_type = SBP_MSG_FILEIO_REMOVE
self.sender = kwargs.pop('sender', SENDER_ID)
self.filename = kwargs.pop('filename')
def __init__(self, sbp=None, **kwargs):
if sbp:
super( MsgLinuxMemState,
self).__init__(sbp.msg_type, sbp.sender, sbp.length,
sbp.payload, sbp.crc)
self.from_binary(sbp.payload)
else:
super( MsgLinuxMemState, self).__init__()
self.msg_type = SBP_MSG_LINUX_MEM_STATE
self.sender = kwargs.pop('sender', SENDER_ID)
self.index = kwargs.pop('index')
self.pid = kwargs.pop('pid')
self.pmem = kwargs.pop('pmem')
self.tname = kwargs.pop('tname')
self.cmdline = kwargs.pop('cmdline')