param: refactor BlockParam classes

- make the selected parameter a template argument. This
  enables type-checking at compile-time.
- move things to src/platforms.
  This provides consistent includes with ModuleBase
- add ModuleParams base class (replaces Block & SuperBlock)
- drop the Block* prefix from the class names
This commit is contained in:
Beat Küng
2018-03-13 17:35:15 +01:00
parent 0e4034d01e
commit fca99cf775
10 changed files with 612 additions and 2 deletions
+2
View File
@@ -96,6 +96,8 @@ void Block::updateParams()
param->update();
param = param->getSibling();
}
updateParamsSubclass();
}
void Block::updateSubscriptions()
+2
View File
@@ -84,6 +84,8 @@ public:
protected:
virtual void updateParamsSubclass() {}
SuperBlock *getParent() { return _parent; }
List<uORB::SubscriptionNode *> &getSubscriptions() { return _subscriptions; }
List<uORB::PublicationNode *> &getPublications() { return _publications; }