diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 22e457c..e78dc60 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,8 +16,7 @@ jobs: with: repository: PonomarevDA/libparams path: Libs/libparams - fetch-depth: 0 - - run: cd ./Libs/libparams && git checkout ecac253 + ref: v0.6.7 - name: Install dependencies run: | diff --git a/Cyphal/params.yaml b/Cyphal/params.yaml index ef3d636..64fdcfb 100644 --- a/Cyphal/params.yaml +++ b/Cyphal/params.yaml @@ -1,3 +1,19 @@ -uavcan.node.id : ["Integer", "PARAM_NODE_ID", "mutable", 50, 0, 256] -system.name : ["String", "PARAM_NODE_NAME", "mutable", ""] -uavcan.node.description : ["String", "PARAM_NODE_DESCRIPTION", "mutable", ""] +uavcan.node.id: + type: Integer + enum: PARAM_NODE_ID + flags: mutable + default: 50 + min: 0 + max: 256 + +system.name: + type: String + enum: PARAM_NODE_NAME + flags: mutable + default: "" + +uavcan.node.description: + type: String + enum: PARAM_NODE_DESCRIPTION + flags: mutable + default: "" diff --git a/examples/ubuntu_minimal/params.cpp b/examples/ubuntu_minimal/params.cpp index d62d2ee..718ca32 100644 --- a/examples/ubuntu_minimal/params.cpp +++ b/examples/ubuntu_minimal/params.cpp @@ -7,12 +7,12 @@ #include "storage.h" IntegerDesc_t integer_desc_pool[] = { - {(uint8_t*)"id", 0, 127, 50}, + {"id", 0, 127, 50}, }; IntegerParamValue_t integer_values_pool[sizeof(integer_desc_pool) / sizeof(IntegerDesc_t)]; StringDesc_t __attribute__((weak)) string_desc_pool[NUM_OF_STR_PARAMS] = { - {(uint8_t*)"name", "", false}, + {"name", "", false}, }; StringParamValue_t string_values_pool[sizeof(string_desc_pool) / sizeof(StringDesc_t)]; diff --git a/examples/ubuntu_publisher_example/params.cpp b/examples/ubuntu_publisher_example/params.cpp index 8c20aca..546b1b9 100644 --- a/examples/ubuntu_publisher_example/params.cpp +++ b/examples/ubuntu_publisher_example/params.cpp @@ -7,13 +7,13 @@ #include "storage.h" IntegerDesc_t integer_desc_pool[] = { - {(uint8_t*)"id", 0, 127, 50}, - {(uint8_t*)"uavcan.pub.feedback.id", 2100, 2100, 2100}, + {"id", 0, 127, 50}, + {"uavcan.pub.feedback.id", 2100, 2100, 2100}, }; IntegerParamValue_t integer_values_pool[sizeof(integer_desc_pool) / sizeof(IntegerDesc_t)]; StringDesc_t __attribute__((weak)) string_desc_pool[NUM_OF_STR_PARAMS] = { - {(uint8_t*)"name", "", false}, - {(uint8_t*)"uavcan.pub.feedback.type", "reg.udral.service.actuator.common.Feedback.0.1", true}, + {"name", "", false}, + {"uavcan.pub.feedback.type", "reg.udral.service.actuator.common.Feedback.0.1", true}, }; StringParamValue_t string_values_pool[sizeof(string_desc_pool) / sizeof(StringDesc_t)];