Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added fixed PortIDs to all wrappers #109

Merged
merged 7 commits into from
Jun 22, 2021
Merged

Added fixed PortIDs to all wrappers #109

merged 7 commits into from
Jun 22, 2021

Conversation

moiflo033
Copy link
Contributor

@moiflo033 moiflo033 commented Jun 21, 2021

As was discussed in #99

I noticed that:

  • ./uavcan/node/430.GetInfo.1.0.uavcan
  • ./uavcan/node/434.GetTransportStatistics.0.1.uavcan
  • ./uavcan/node/435.ExecuteCommand.1.0.uavcan
  • ./uavcan/node/435.ExecuteCommand.1.1.uavcan
  • ./uavcan/node/7509.Heartbeat.1.0.uavcan

Arent templated so i left those as is.

I also noticed that the wrappers for:
uavcan/node/port/*
are missing.

moiflo033 and others added 2 commits June 21, 2021 15:58
Added fixed port IDs for:
- [x] ./uavcan/diagnostic/8184.Record.1.0.uavcan
- [x] ./uavcan/diagnostic/8184.Record.1.1.uavcan
- [x] ./uavcan/file/405.GetInfo.0.1.uavcan
- [x] ./uavcan/file/405.GetInfo.0.2.uavcan
- [x] ./uavcan/file/406.List.0.1.uavcan
- [x] ./uavcan/file/406.List.0.2.uavcan
- [x] ./uavcan/file/407.Modify.1.0.uavcan
- [x] ./uavcan/file/407.Modify.1.1.uavcan
- [x] ./uavcan/file/408.Read.1.0.uavcan
- [x] ./uavcan/file/408.Read.1.1.uavcan
- [x] ./uavcan/file/409.Write.1.0.uavcan
- [x] ./uavcan/file/409.Write.1.1.uavcan
- [x] ./uavcan/internet/udp/500.HandleIncomingPacket.0.1.uavcan
- [x] ./uavcan/internet/udp/500.HandleIncomingPacket.0.2.uavcan
- [x] ./uavcan/internet/udp/8174.OutgoingPacket.0.1.uavcan
- [x] ./uavcan/internet/udp/8174.OutgoingPacket.0.2.uavcan
- [x] ./uavcan/pnp/8165.NodeIDAllocationData.2.0.uavcan
- [x] ./uavcan/pnp/8166.NodeIDAllocationData.1.0.uavcan
- [x] ./uavcan/pnp/cluster/390.AppendEntries.1.0.uavcan
- [x] ./uavcan/pnp/cluster/391.RequestVote.1.0.uavcan
- [x] ./uavcan/pnp/cluster/8164.Discovery.1.0.uavcan
- [x] ./uavcan/register/384.Access.1.0.uavcan
- [x] ./uavcan/register/385.List.1.0.uavcan
- [x] ./uavcan/time/510.GetSynchronizationMasterInfo.0.1.uavcan
- [x] ./uavcan/time/7168.Synchronization.1.0.uavcan
@github-actions
Copy link

Memory usage change @ 8f574fd

Board flash % RAM for global variables %
arduino:mbed:envie_m4 0 - 0 0.0 - 0.0 0 - 0 0.0 - 0.0
arduino:mbed:envie_m7 0 - 0 0.0 - 0.0 0 - 0 0.0 - 0.0
arduino:mbed:nano33ble 0 - 0 0.0 - 0.0 0 - 0 0.0 - 0.0
arduino:samd:mkrvidor4000 0 - 0 0.0 - 0.0 0 - 0 0.0 - 0.0
esp32:esp32:esp32 0 - 0 0.0 - 0.0 0 - 0 0.0 - 0.0
Click for full report table
Board examples/UAVCAN-BMS-Subscribe
flash
% examples/UAVCAN-BMS-Subscribe
RAM for global variables
% examples/UAVCAN-Blink
flash
% examples/UAVCAN-Blink
RAM for global variables
% examples/UAVCAN-Heartbeat-Publish
flash
% examples/UAVCAN-Heartbeat-Publish
RAM for global variables
% examples/UAVCAN-Heartbeat-Subscribe
flash
% examples/UAVCAN-Heartbeat-Subscribe
RAM for global variables
% examples/UAVCAN-Service-Client
flash
% examples/UAVCAN-Service-Client
RAM for global variables
% examples/UAVCAN-Service-Server
flash
% examples/UAVCAN-Service-Server
RAM for global variables
%
arduino:mbed:envie_m4 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0
arduino:mbed:envie_m7 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0
arduino:mbed:nano33ble 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0
arduino:samd:mkrvidor4000 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0
esp32:esp32:esp32 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0
Click for full report CSV
Board,examples/UAVCAN-BMS-Subscribe<br>flash,%,examples/UAVCAN-BMS-Subscribe<br>RAM for global variables,%,examples/UAVCAN-Blink<br>flash,%,examples/UAVCAN-Blink<br>RAM for global variables,%,examples/UAVCAN-Heartbeat-Publish<br>flash,%,examples/UAVCAN-Heartbeat-Publish<br>RAM for global variables,%,examples/UAVCAN-Heartbeat-Subscribe<br>flash,%,examples/UAVCAN-Heartbeat-Subscribe<br>RAM for global variables,%,examples/UAVCAN-Service-Client<br>flash,%,examples/UAVCAN-Service-Client<br>RAM for global variables,%,examples/UAVCAN-Service-Server<br>flash,%,examples/UAVCAN-Service-Server<br>RAM for global variables,%
arduino:mbed:envie_m4,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0
arduino:mbed:envie_m7,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0
arduino:mbed:nano33ble,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0
arduino:samd:mkrvidor4000,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0
esp32:esp32:esp32,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0

@aentinger
Copy link
Member

Actually

  • ./uavcan/node/430.GetInfo.1.0.uavcan
  • ./uavcan/node/434.GetTransportStatistics.0.1.uavcan
  • ./uavcan/node/435.ExecuteCommand.1.0.uavcan
  • ./uavcan/node/435.ExecuteCommand.1.1.uavcan
  • ./uavcan/node/7509.Heartbeat.1.0.uavcan

do need to be rewritten to be template-configurable. Could you please add that to this PR?

I've forgotten whether uavcan/node/port/* has intentionally been left out or I just forgot about it. Just in case it could be added in a separate PR.

@aentinger
Copy link
Member

This fixes #99.

Added fixed port IDs for:
- ./uavcan/node/430.GetInfo.1.0.uavcan
- ./uavcan/node/434.GetTransportStatistics.0.1.uavcan
- ./uavcan/node/435.ExecuteCommand.1.0.uavcan
- ./uavcan/node/435.ExecuteCommand.1.1.uavcan
- ./uavcan/node/7509.Heartbeat.1.0.uavcan
@moiflo033
Copy link
Contributor Author

Done.
I noticed that following wrappers are missing in the uavcan/node/* namespace:

  • Healt_1_0.h
  • IOStatistics_0_1.h
  • Mode_1_0.h

Also ID_1_0.hpp has a duplicate in types.

@codecov-commenter
Copy link

Codecov Report

Merging #109 (997b4c7) into master (63e7546) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #109   +/-   ##
=======================================
  Coverage   85.64%   85.64%           
=======================================
  Files          17       17           
  Lines         641      641           
=======================================
  Hits          549      549           
  Misses         92       92           
Impacted Files Coverage Δ
src/wrappers/uavcan/node/ExecuteCommand_1_0.hpp 100.00% <ø> (ø)
src/wrappers/uavcan/node/Heartbeat_1_0.hpp 100.00% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 63e7546...997b4c7. Read the comment docs.

@github-actions
Copy link

Memory usage change @ 997b4c7

Board flash % RAM for global variables %
arduino:mbed:envie_m4 0 - 0 0.0 - 0.0 0 - 0 0.0 - 0.0
arduino:mbed:envie_m7 0 - 0 0.0 - 0.0 0 - 0 0.0 - 0.0
arduino:mbed:nano33ble 0 - 0 0.0 - 0.0 0 - 0 0.0 - 0.0
arduino:samd:mkrvidor4000 0 - 0 0.0 - 0.0 0 - 0 0.0 - 0.0
esp32:esp32:esp32 0 - 0 0.0 - 0.0 0 - 0 0.0 - 0.0
Click for full report table
Board examples/UAVCAN-BMS-Subscribe
flash
% examples/UAVCAN-BMS-Subscribe
RAM for global variables
% examples/UAVCAN-Blink
flash
% examples/UAVCAN-Blink
RAM for global variables
% examples/UAVCAN-Heartbeat-Publish
flash
% examples/UAVCAN-Heartbeat-Publish
RAM for global variables
% examples/UAVCAN-Heartbeat-Subscribe
flash
% examples/UAVCAN-Heartbeat-Subscribe
RAM for global variables
% examples/UAVCAN-Service-Client
flash
% examples/UAVCAN-Service-Client
RAM for global variables
% examples/UAVCAN-Service-Server
flash
% examples/UAVCAN-Service-Server
RAM for global variables
%
arduino:mbed:envie_m4 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0
arduino:mbed:envie_m7 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0
arduino:mbed:nano33ble 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0
arduino:samd:mkrvidor4000 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0
esp32:esp32:esp32 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0
Click for full report CSV
Board,examples/UAVCAN-BMS-Subscribe<br>flash,%,examples/UAVCAN-BMS-Subscribe<br>RAM for global variables,%,examples/UAVCAN-Blink<br>flash,%,examples/UAVCAN-Blink<br>RAM for global variables,%,examples/UAVCAN-Heartbeat-Publish<br>flash,%,examples/UAVCAN-Heartbeat-Publish<br>RAM for global variables,%,examples/UAVCAN-Heartbeat-Subscribe<br>flash,%,examples/UAVCAN-Heartbeat-Subscribe<br>RAM for global variables,%,examples/UAVCAN-Service-Client<br>flash,%,examples/UAVCAN-Service-Client<br>RAM for global variables,%,examples/UAVCAN-Service-Server<br>flash,%,examples/UAVCAN-Service-Server<br>RAM for global variables,%
arduino:mbed:envie_m4,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0
arduino:mbed:envie_m7,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0
arduino:mbed:nano33ble,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0
arduino:samd:mkrvidor4000,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0
esp32:esp32:esp32,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0

Copy link
Member

@aentinger aentinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @moiflo033 🚀

@aentinger aentinger merged commit ef25d69 into 107-systems:master Jun 22, 2021
@aentinger
Copy link
Member

Health_1_0.h and Mode_1_0.h are not strictly necessary, as they probably never fill form a stand-alone UAVCAN message. However, IOStatistics_0_1.h really should be there. I've created #111 for tracking this.

ID_1_0 is "double" in terms of type naming, but not in terms of DSDL content. Compare uavcan/node/port/ID.1.0 with uavcan/node/ID.1.0

@moiflo033
Copy link
Contributor Author

Sorry i wasn't clear enoug ID_1_0.hpp is present in wrappers and types.

@aentinger
Copy link
Member

Oh my, that's a 🐛

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants