53 if (parent ==
nullptr) {
55 fullname[
sizeof(fullname) - 1] =
'\0';
61 if (strcmp(name,
"") == 0) {
64 fullname[
sizeof(fullname) - 1] =
'\0';
66 }
else if (parent_prefix) {
68 PX4_ERR(
"param too long: %s", name);
74 fullname[
sizeof(fullname) - 1] =
'\0';
83 PX4_ERR(
"error finding param: %s", fullname);
108 return (ret == PX4_OK);
#define PARAM_INVALID
Handle returned when a parameter cannot be found.
__EXPORT int param_get(param_t param, void *val)
Copy the value of a parameter.
An intrusive linked list.
void getName(char *name, size_t n)
BlockParamBase(Block *parent, const char *name, bool parent_prefix=true)
Instantiate a block param base.
static constexpr uint8_t blockNameLengthMax
__EXPORT param_t param_find(const char *name)
Look up a parameter by name.
BlockParam(Block *block, const char *name, bool parent_prefix=true)
List< BlockParamBase * > & getParams()