Bugfix/print property name units lighting (#313)

* Fix EPICS property name proprietary range

* Fix Lighting Command decode length

* add function to determine property name and units proprietary range

* improve test coverage for AI, AO, AV, BI, BO, BV, LO

* refactor common property encoding to proplist module

* add decoder for priority array

Co-authored-by: Steve Karg <skarg@users.sourceforge.net>
This commit is contained in:
Steve Karg
2022-07-29 17:11:38 -05:00
committed by GitHub
parent 731e951106
commit a945588340
18 changed files with 622 additions and 309 deletions
+3 -5
View File
@@ -52,11 +52,9 @@ static void testLightingOutput(void)
printf("property '%s': failed to decode!\n",
bactext_property_name(rpdata.object_property));
}
if ((rpdata.object_property == PROP_LIGHTING_COMMAND) ||
(rpdata.object_property == PROP_PRIORITY_ARRAY) ||
(rpdata.object_property == PROP_TRACKING_VALUE)) {
/* FIXME: how to decode the complex data? */
test_len = len;
if (rpdata.object_property == PROP_PRIORITY_ARRAY) {
/* FIXME: known fail to decode */
len = test_len;
}
zassert_equal(len, test_len, NULL);
}