sbp.ext_events module¶
Messages reporting accurately-timestamped external events, e.g. camera shutter time.
-
class
sbp.ext_events.
MsgExtEvent
(sbp=None, **kwargs)[source]¶ Bases:
sbp.msg.SBP
SBP class for message MSG_EXT_EVENT (0x0101).
You can have MSG_EXT_EVENT inherit its fields directly from an inherited SBP object, or construct it inline using a dict of its fields.
Reports detection of an external event, the GPS time it occurred,
which pin it was and whether it was rising or falling.
- sbp : SBP
- SBP parent object to inherit from.
- wn : int
- GPS week number
- tow : int
- GPS time of week rounded to the nearest millisecond
- ns_residual : int
- Nanosecond residual of millisecond-rounded TOW (ranges
from -500000 to 500000)
- flags : int
- Flags
- pin : int
- Pin number. 0..9 = DEBUG0..9.
- sender : int
- Optional sender ID, defaults to SENDER_ID (see sbp/msg.py).
-
flags
¶
-
from_binary
(d)[source]¶ Given a binary payload d, update the appropriate payload fields of the message.
-
ns_residual
¶
-
pin
¶
-
tow
¶
-
wn
¶