Closed nathancheek closed 4 years ago
Good catch, maybe I should just add this rate group as a cookiecutter option. Basically, if you answer yes
the relevant lines are all uncommented, and if you answer no
they are all still there, but commented out.
Well, I have added the commented out line, although it is not yet pushed. I think I will actually leave it that way for now, and make additional example rate groups an option in a later update (when it generates something more complete, like Ref
).
The
rateGroup1HzComp
is referenced in commented out lines in theTopologyAi.xml
as well asTopology.cpp
files, but not inComponents.hpp
. As it is now, the user must uncomment lines inTopologyAi.xml
,Topology.cpp
, andSchedContexts.hpp
, then add a line toComponents.hpp
to set up the 1Hz rate group.Components.hpp
should be set up like the other files so the user can easily set up a 1Hz rate group by just uncommenting the right lines in the 4 related boilerplate files.// extern Svc::ActiveRateGroupImpl rateGroup1HzComp;
should be added here: https://github.com/SterlingPeet/cookiecutter-fprime-deployment/blob/572ebe684829dec6481c3fefcca8e49f143fa5c8/%7B%7Bcookiecutter.deployment_dir_name%7D%7D/Top/Components.hpp#L21