Fix availability and naming of properties and state structs for devices#276
Fix availability and naming of properties and state structs for devices#276heliosfa merged 8 commits intodevelopmentfrom
Conversation
mvousden
left a comment
There was a problem hiding this comment.
Looks largely sane to me. More thoughts:
-
The fix for #232 is good - splitting those structure declarations off into their own header file will make debugging a fair amount easier.
-
Given that application writers are permitted to access these types (as this is a user-facing feature), I think they should be introduced in the application documentation, perhaps with a corresponding example handler 🍠.
-
I think the application writer should be told that their message payloads are packed tightly - another documentation update perhaps?
-
Your APSP changes also seem sane, though I would suggest addressing the signedness warning (just use a cast in the condition?).
-
Since you're fixing #232, can we un-xfail the APSP test? These are denoted in the Bash scripts in
Tests/ReferenceXML- they callTODOfunctions instead ofsuccessorfailurefunctions. Do let me know if you need guidance with this. 🍠 -
Where I put the 👍, I wondered if
requestIdlehad been implemented. If so, please "activate" the corresponding tests in the same way as the above. 🍠
I'll do a docs tweak and PR.
Interestingly, I now cannot reproduce this warning.
I have enabled both of these tests. |
|
Turns out that I had done the docs changes ages ago but forgot to PR them... |
mvousden
left a comment
There was a problem hiding this comment.
Nothing further to add from prior review, looks good to me.
This PR:
devtyp_{DEVICETYPE}_...format to{GRAPHTYPE}_{DEVICETYPE}_.... (fixes Standard type-name aliases are not emitted #231)DeviceStructs.h, that is used by all devices and the Supervisor. (fixes Types for device properties and state only available within that devices handlers #232)#pragma pack(push,1)to the message stuct header. (partially addresses Generated types (e.g. state, messages) don't have packing specified #240)apsp_vec_barrier_150_10.xmlexample that stoped it compiling.The plate heat example has been updated, and a very simple compilation test added, in POETSII/Orchestrator_examples#14.
Vol III B has had some minor updates: docx|pdf
APSP tweaks:
To get the APSP example to compile, I had to add
#include <climits>to the shared code.I also had to add a
const unsignedcast to the second parameter in the calls tostd::minto handle:There is still a warning that I am ignoring for now: