OpenCyphal / nunavut

Generate code from DSDL using PyDSDL and Jinja2
https://nunavut.readthedocs.io/
Other
36 stars 24 forks source link

Provide "--target-language Arduino" for generating Arduino headers from DSDL #179

Open aentinger opened 3 years ago

aentinger commented 3 years ago

107-Arduino-UAVCAN is an Arduino library which allows to quickly create your own UAVCAN nodes following a beginner-friendly API paradigm.

So far serialisation and deserialisation has been implemented by wrapping the nunavut generated C headers (e.g. Heartbeat_1_0.h) into Arduino wrappers (e.g. Heartbeat.1.0.hpp). As manually encoding this types is no longer sustainable those Arduino headers would need to be automatically generated directly from the DSDL (e.g. the official DSDL stored in public_regulated_data_types).

pavel-kirienko commented 3 years ago

What would be the differences between the upcoming C++ and Arduino targets?

aentinger commented 3 years ago

That depends how the upcoming C++ target would look like (that is how it's API would look like). If I can fit it with minor effort into 107-Arduino-UAVCAN codebase I'm quite motivated to do it :shrug: