60 strncpy(buf,
_name, n);
68 if (!strcmp(
_name,
"")) {
69 strncpy(buf, parentName, n);
74 snprintf(buf, n,
"%s_%s", parentName,
_name);
84 while (param !=
nullptr) {
88 PX4_ERR(
"exceeded max params for block: %s", name);
103 Block *child = getChildren().getHead();
106 while (child !=
nullptr) {
110 PX4_ERR(
"exceeded max children for block: %s", name);
121 Block *child = getChildren().getHead();
124 while (child !=
nullptr) {
128 PX4_ERR(
"exceeded max children for block: %s", name);
virtual void updateParamsSubclass()
static constexpr uint8_t maxParamsPerBlock
void getName(char *name, size_t n)
virtual void setDt(float dt)
static constexpr uint8_t maxChildrenPerBlock
List< Block * > & getChildren()
void setDt(float dt) override
static constexpr uint8_t blockNameLengthMax
Block(SuperBlock *parent, const char *name)
virtual void updateParams()
const T getSibling() const
List< BlockParamBase * > & getParams()