Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified docs/sbp.pdf
Binary file not shown.
18 changes: 9 additions & 9 deletions generator/sbpg/targets/resources/sbp_base.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
\documentclass{article}
\documentclass[9pt]{extarticle}

\usepackage{amsmath}
\usepackage{booktabs}
Expand Down Expand Up @@ -129,17 +129,17 @@ \section{Message Framing Structure}
\toprule
Offset (bytes) & Size (bytes) & Name & Description \\
\midrule
$0$ & $1$ & {Preamble} & Denotes the start of frame transmission. Always 0x55. \\
$1$ & $2$ & {Message Type} & Identifies the payload contents. \\
$3$ & $2$ & {Sender} & \hangindent=0.5em{A unique identifier of the sender. On the Piksi, this is set to the 2 least significant bytes of the device serial number. A stream of SBP messages may also include sender IDs for forwarded messages. By default, clients of `libsbp` use a sender id value of `0x42`. Sender id '0x42' is used to represent device controllers such as the Piksi Console.} \\
$5$ & $1$ & {Length} & Length (bytes) of the {Payload} field. \\
$6$ & $N$ & {Payload} & Binary message contents. \\
$N+6$ & $2$ & {CRC} & \hangindent=0.5em{Cyclic Redundancy Check of the frame's binary data from the Message Type up to the end of Payload (does not include the Preamble).} \\
$\mathtt{0}$ & $\mathtt{1}$ & {Preamble} & Denotes the start of frame transmission. Always 0x55. \\
$\mathtt{1}$ & $\mathtt{2}$ & {Message Type} & Identifies the payload contents. \\
$\mathtt{3}$ & $\mathtt{2}$ & {Sender} & \hangindent=0.5em{A unique identifier of the sender. On the Piksi, this is set to the 2 least significant bytes of the device serial number. A stream of SBP messages may also include sender IDs for forwarded messages. By default, clients of `libsbp` use a sender id value of `0x42`. Sender id '0x42' is used to represent device controllers such as the Piksi Console.} \\
$\mathtt{5}$ & $\mathtt{1}$ & {Length} & Length (bytes) of the {Payload} field. \\
$\mathtt{6}$ & $\mathtt{N}$ & {Payload} & Binary message contents. \\
$\mathtt{N+6}$ & $\mathtt{2}$ & {CRC} & \hangindent=0.5em{Cyclic Redundancy Check of the frame's binary data from the Message Type up to the end of Payload (does not include the Preamble).} \\
\midrule
& $N+8$ & &Total Frame Length \\
& $\mathtt{N+8}$ & &Total Frame Length \\
\bottomrule
\end{tabularx}
\caption{Swift Binary Protocol message structure. $N$ denotes a variable-length size.}
\caption{Swift Binary Protocol message structure. $\mathtt{N}$ denotes a variable-length size.}
\label{tab:message}
\end{table}

Expand Down
12 changes: 6 additions & 6 deletions generator/sbpg/targets/resources/sbp_messages_desc.tex
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ \subsubsection{(((m.name | escape_tex ))) ((*- if m.is_real_message *)) --- ((('
Offset (bytes) & Size (bytes) & Format & Units & Name & Description \\
\midrule
((*- for f in m.fields *))
$(((f.offset)))$ &
$(((f.size)))$ &
$\mathtt{(((f.offset)))}$ &
$\mathtt{(((f.size)))}$ &
(((f.fmt))) &
(((f.units|escape_tex))) &
\texttt{(((f.name|escape_tex)))} &
\hangindent=0.5em{(((f.desc|escape_tex)))} \\
((*- endfor *))
\midrule
& $(((m.size)))$ & & & & Total Payload Length\\
& $\mathtt{(((m.size)))}$ & & & & Total Payload Length\\
\bottomrule
\end{tabularx}
\caption{(((m.name|escape_tex)))
Expand Down Expand Up @@ -113,15 +113,15 @@ \subsubsection*{(((m.name|escape_tex|no_us))) --- ((('0x%04X'|format(m.sbp_id)))
Offset (bytes) & Size (bytes) & Format & Units & Name & Description \\
\midrule
((*- for f in m.fields *))
$(((f.offset)))$ &
$(((f.size)))$ &
$\mathtt{(((f.offset)))}$ &
$\mathtt{(((f.size)))}$ &
(((f.fmt))) &
(((f.units|escape_tex))) &
\texttt{(((f.name|escape_tex)))} &
\hangindent=0.5em{(((f.desc|escape_tex)))} \\
((*- endfor *))
\midrule
& $(((m.size)))$ & & & & Total Payload Length\\
& $\mathtt{(((m.size)))}$ & & & & Total Payload Length\\
\bottomrule
\end{tabularx}
\caption{(((m.name|escape_tex))) (((('0x%04X'|format(m.sbp_id))))) message structure}
Expand Down
4 changes: 2 additions & 2 deletions generator/sbpg/targets/resources/sbp_messages_table.tex
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ \section{Message Types}
(((m.pkg|packagenameify|escape_tex|no_us|header_write))) &
\hyperref[sec:(((m.name)))]{\texttt{((('0x%04X'|format(m.sbp_id))))}} &
\hyperref[sec:(((m.name)))]{\texttt{(((m.name|escape_tex)))}} &
$(((m.size)))$ &
$\mathtt{(((m.size)))}$ &
(((m.short_desc|removedir|escape_tex))) \\
((*- endif -*))
((*- endfor *))
Expand All @@ -39,7 +39,7 @@ \section{Message Types}
(((m.pkg|packagenameify|escape_tex|no_us|header_write))) &
\hyperref[sec:(((m.name)))]{\texttt{((('0x%04X'|format(m.sbp_id))))}} &
\hyperref[sec:(((m.name)))]{\texttt{(((m.name|escape_tex)))}} &
$(((m.size)))$ &
$\mathtt{(((m.size)))}$ &
(((m.short_desc|removedir|escape_tex))) \\
((*- endif -*))
((*- endfor *))
Expand Down
3 changes: 1 addition & 2 deletions latex/swiftnav.sty
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
\ProvidesPackage{swiftnav}

% Font
%\usepackage[math]{iwona}
\usepackage[sfdefault]{roboto}

% (2) specify encoding
\usepackage[T1]{fontenc}
\usepackage{stix}

% (3) load symbol definitions
\usepackage{textcomp}
Expand Down
2 changes: 1 addition & 1 deletion latex/swiftnav_tikz.sty
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
\usepackage{tikz}

\usepackage[T1]{fontenc}
\usepackage{stix}
\usepackage[sfdefault]{roboto}

\definecolor{swift_red}{rgb}{140,0,0}

Expand Down