-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Significant update to get docs in a usable state, pull in updates fro…
…m the component template, and fix a handful of bugs. * Full revamp of documentation. * Pull in updates from the component template. * Fix active component definition. * Add selectable multi-platform support for the exerciser component. * Numerous spelling fixes. * Move from ``assembly`` to ``slug`` for deployment name. * Update template to use ``cookiecutter`` plugin ``slugify``. * Add ``.cookiecutterrc`` file to make regeneration of the template easier. * Fix bug where compiling without ``FW_OBJECT_NAMES == 1`` fails to provide a valid constructor, instead calling the Base component. * Fix component path definition to F Prime root. Closes #3, closes #4, and closes #5.
- Loading branch information
1 parent
572ebe6
commit 7fc90d5
Showing
23 changed files
with
377 additions
and
228 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,19 +3,22 @@ | |
"email": "[email protected]", | ||
"deployment_display_name": "My Example", | ||
"dep_short_description": "Example deployment for F Prime FSW framework.", | ||
"deployment_assembly": "{{ cookiecutter.deployment_display_name|replace(' ','')|replace('-','')|replace('_','') }}", | ||
"deployment_dir_name": "{{ cookiecutter.deployment_assembly }}", | ||
"deployment_slug": "{{ cookiecutter.deployment_display_name|slugify(separator='', lowercase=False) }}", | ||
"deployment_dir_name": "{{ cookiecutter.deployment_slug }}", | ||
"deployment_path": "example/path", | ||
"path_to_fprime_root": "../..", | ||
"component_display_name": "Led Blinker", | ||
"component_name": "Led Blinker", | ||
"component_short_description": "Example component to support {{ cookiecutter.deployment_display_name }} deployment.", | ||
"component_name": "{{ cookiecutter.component_display_name|replace(' ','')|replace('-','')|replace('_','') }}", | ||
"component_dir_name": "{{ cookiecutter.component_name }}", | ||
"component_slug": "{{ cookiecutter.component_name|slugify(separator='', lowercase=False) }}", | ||
"component_dir_name": "{{ cookiecutter.component_slug }}", | ||
"component_explicit_component_suffix": ["Component", ""], | ||
"component_explicit_common": ["", "Common"], | ||
"component_suffix": ["", "Impl"], | ||
"component_impl_suffix": ["", "Impl"], | ||
"component_path_to_fprime_root": "{{ cookiecutter.path_to_fprime_root }}/..", | ||
"component_namespace": "{{ cookiecutter.deployment_path|replace('/','::')|replace('\\\\','::') }}", | ||
"component_kind": ["active", "passive"], | ||
"component_instance_name": "{{ cookiecutter.component_name|replace(' ','_')|replace('-','_') }}", | ||
"component_kind": ["passive", "active"], | ||
"component_multiplatform_support": ["no", "yes"], | ||
"component_instance_name": "{{ cookiecutter.component_slug|lower }}", | ||
"startup_delay_msec": ["2000", "1000", "500", "0"], | ||
"startup_arduino_led_flash": ["yes", "no"], | ||
"arduino_log_stream": ["Serial", "Serial1", "Serial2", "Serial3"], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# This file exists so you can easily regenerate your project. | ||
# | ||
# `cookiepatcher` is a convenient shim around `cookiecutter` | ||
# for regenerating projects (it will generate a .cookiecutterrc | ||
# automatically for any template). To use it: | ||
# | ||
# pip install cookiepatcher | ||
# cookiepatcher gh:sterlingpeet/cookiecutter-fprime-deployment {{cookiecutter.deployment_dir_name}} | ||
# | ||
# See: | ||
# https://pypi.org/project/cookiepatcher | ||
# | ||
# Alternatively, you can run: | ||
# | ||
# cookiecutter --overwrite-if-exists --config-file={{cookiecutter.deployment_dir_name}}/.cookiecutterrc gh:sterlingpeet/cookiecutter-fprime-deployment | ||
|
||
default_context: | ||
{% for key, value in cookiecutter.items()|sort %} | ||
{{ "{0:26}".format(key + ":") }} {{ "{0!r}".format(value).strip("u") }} | ||
{%- endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.