Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/opencyphal/specification
The Cyphal specification documents are maintained here.
https://github.com/opencyphal/specification
aerospace can-bus canbus communication-protocol cyphal drone drones latex open-standard opencyphal robotics uavcan unmanned-aerial-vehicle
Last synced: 24 days ago
JSON representation
The Cyphal specification documents are maintained here.
- Host: GitHub
- URL: https://github.com/opencyphal/specification
- Owner: OpenCyphal
- License: cc-by-4.0
- Created: 2018-06-29T15:15:39.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-01-07T13:04:40.000Z (12 months ago)
- Last Synced: 2024-10-29T18:47:19.726Z (about 2 months ago)
- Topics: aerospace, can-bus, canbus, communication-protocol, cyphal, drone, drones, latex, open-standard, opencyphal, robotics, uavcan, unmanned-aerial-vehicle
- Language: TeX
- Homepage: https://opencyphal.org/specification
- Size: 4.42 MB
- Stars: 42
- Watchers: 16
- Forks: 12
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Cyphal specification
[![CI](https://github.com/OpenCyphal/specification/actions/workflows/build.yml/badge.svg)](https://github.com/OpenCyphal/specification/actions)
[![Forum](https://img.shields.io/discourse/https/forum.opencyphal.org/users.svg)](https://forum.opencyphal.org)The sources of the Cyphal specification and other related documents are contained here.
When cloning this repository, don't forget to initialize the Git submodules:
`git submodule update --init --recursive`.## Governance
The Cyphal specification is community-managed and completely open. Anyone can propose changes but only Cyphal maintainers may commit changes to this repository where the contents of the HEAD revision of the primary branch constitutes the latest version of the specification in-effect.
### Request For Comments (RFC) Process
Changes to the specification shall use the following, community-driven RFC process:
1. An RFC is posted on the [OpenCyphal forum's specification section](https://forum.opencyphal.org/c/dev/spec/15) with the details of the proposed change. The title of this post should start with "RFC: " to indicate it is the start of a proposed change to the specification.
2. RFCs will remain on the forum for at least 10 days to ensure interested parties have time to discover and review them.
3. After some discussion and review by the community, the RFC is either accepted or rejected by at least one OpenCyphal maintainer.
4. Once accepted the RFC is implemented in the specification as a pull-request and is considered adopted once the PR has been merged.## Editing guide
### Style
Follow the Zubax LaTeX guide: .
**Do not edit the document without the spell checker.**Write in American English.
Critical definitions (behaviors, constraints, assumptions, etc.) shall be written in the main body of the document.
Optional content (clarifications, examples, elaborations) is placed either into footnotes or into blue remark boxes
which can be defined using `\begin{remark}...\end{remark}`.Never address the reader directly.
Do not hesitate to use passive voice.
For example, instead of "you can find the data type X here", say "the data type X can be found here".Follow [RFC2119](https://tools.ietf.org/rfc/rfc2119.txt).
Do not use title case. Headings and captions are to be written in regular sentence case.
Generally, capitalized words can only be used in the beginning of a sentence and in proper names.Do not put a full stop after a caption unless it contains any other punctuation or is more than one sentence long.
Always insert a non-breakable space before reference: `refer to section~\ref{sec:chapter_section}`.
When referring to a category of identifiers, put a hyphen before "ID"; for example: "node-ID" is correct, "node ID" is not.
Avoid introduction of new acronyms unless you really must.
It is better to say "transfer-ID" or "data type hash" rather than TID or DTH.
Excessive reliance on acronyms may impede comprehension.### Rigging
In order to refer to a DSDL definition, use macro `\DSDLReference{}`.
To include a DSDL definition or a namespace index, use macro `\DSDL{}`.
Refer to the existing usages for an example.### Structure and cross-referencing
Each chapter is located in a dedicated directory, whose name is a single lowercase word.
The main file of the chapter is located in a file under the same name as the directory.
For example: `chapter/chapter.tex` (where "chapter" is the chapter name placeholder).When defining a new label, you must use the prefix following the pattern `kind:chapter`, where:
- "kind" is the kind of the labeled item, such as `fig`, `table`, or `sec`;
- "chapter" is the name of the directory where the chapter is contained.The label that contains only the prefix points to the chapter itself using the kind `sec`.
For example, if the chapter is named "Transport layer", its label would be `sec:transport`.Items contained inside the chapter (sections, figures, tables) are named using free form
appended to the prefix.
For example, one could refer to a figure contained inside the chapter "Chapter" as `fig:chapter_my_figure`.The above rules are crucial to follow to keep cross-references usable.
Without strict conventions in place, they quickly become unmanageable.### Source formatting
- One level of nesting shall be indented with 4 spaces. Tabs shall not be used anywhere in the source.
- There shall be no more than 120 characters per line.
- There shall be exactly one blank line at the end of the file.
- There shall be no more than one consecutive blank line.
- There shall be at most one chapter per source file.
- There shall be one blank line above and below a section header,
unless the section header is at the top of the source file.
- Multi-line content enclosed in curly braces should be indented.
- If a list item spills on the next line, the spilled text should be indented on the same level with `\item`.```tex
\begin{itemize}
\item This list item is sufficiently long to exceed the limit of 120 characters per line,
so it has to spill onto the next line.
The spilled part is indented correctly.\item Another item.
\end{itemize}% The next line contains a comment to remove the whitespace in the beginning of the footnote.
Regulated non-standard definitions\footnote{%
I.e., public definitions contributed by vendors and other users
of the specification, as explained in section~\ref{sec:basic_data_type_regulation}.
} are not included in this list.
```## Tools
### Compiling
A GNU/Linux-based operating system is assumed.
The described instructions may be valid for other operating systems but this is not guaranteed.In order to compile the document, install TeX Live
(Ubuntu packages: [`texlive-full`](https://packages.ubuntu.com/xenial/texlive-full) and `lyx`)
and the Python packages listed in `requirements.txt`.When done, run `./compile.sh`.
#### Using texer
You can use our texer container to build the specification if you don't want to setup your own build environment.
Please consult with the CI/CD workflow to find out which container version should be used.
To enter the container from a local shell, go roughly like this:```sh
docker run -it --rm -v $(pwd):/repo -e LOCAL_USER_ID=`id -u` ghcr.io/opencyphal/texer:te22.4.1 bash
```### IDE setup
First, ensure that you can compile the document as described above.
Do not proceed further until that requirement is satisfied.Use Visual Studio Code with the recommended extensions for editing.
More info in the [Zubax Knowledge Base](https://kb.zubax.com/x/IYEh).#### L33t IDE Setup
If you want to use our [texer container](https://hub.docker.com/repository/docker/uavcan/texer) with vscode then install the ["ms-vscode-remote.vscode-remote-extensionpack"](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.vscode-remote-extensionpack) and Docker. When you open vscode in this repository it should prompt you to "open this folder in container?". Otherwise `F1` or `CMD+SHIFT+P` and select `Remote-Containers: Reopen Locally`. Once within the container you can simply `F1` or `CMD+SHIFT+P` and `LaTeX Workshop: Build LaTeX project` to build the specification PDF.
The above [may not work](https://github.com/microsoft/vscode-remote-release/issues/1097) if you are running an OSS build of VSCode (e.g., from Arch AUR). It is recommended to use the official binaries from Micro$oft.