Skip to content

Commit

Permalink
Fix that pesky syntax problem, and also adjust some formatting.
Browse files Browse the repository at this point in the history
* Fix syntax where component constructor has the wrong terminator when not storing component names in the binary.

* Consistent indents.

* Fix exerciser component auto-coder input file to point to the correct schema path.

* Make docs table easier to read.

* Reformat change log table to be easier to read.

Closes #5, again.
  • Loading branch information
SterlingPeet committed Oct 9, 2020
1 parent 7fc90d5 commit b80ebc9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ Dictionaries: [HTML]({{cookiecutter.component_slug}}{{cookiecutter.component_exp

## 4. Module Checklists

Document | Link
-------- | ----
Design Checklist | [Link](Checklist_Design.xlsx)
Code Checklist | [Link](Checklist_Code.xlsx)
Document | Link
------------------- | ----
Design Checklist | [Link](Checklist_Design.xlsx)
Code Checklist | [Link](Checklist_Code.xlsx)
Unit Test Checklist | [Link](Checklist_Unit_Test.xls)

## 5. Unit Testing
Expand All @@ -77,8 +77,8 @@ Unit Test Checklist | [Link](Checklist_Unit_Test.xls)

## 6. Change Log

Date | Description
---- | -----------
Date | Description
---------- | -----------
<TODAY> | Initial Component Design


Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="{{cookiecutter.component_path_to_fprime_root}}/Autocoders/Python/schema/default/component_schema.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
<?xml-model href="{{cookiecutter.component_path_to_fprime_root}}/../Autocoders/Python/schema/default/component_schema.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
<component name="{{cookiecutter.component_slug}}" kind="{{cookiecutter.component_kind}}" namespace="{{cookiecutter.component_namespace}}">
<!-- Example of importing a port type -->
<import_port_type>Svc/Sched/SchedPortAi.xml</import_port_type>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace {{cookiecutter.component_namespace}} {
) :
{{cookiecutter.component_slug}}ComponentBase(compName),
#else
{{cookiecutter.component_slug}}{{cookiecutter.component_explicit_component_suffix}}{{cookiecutter.component_impl_suffix}}(void),
{{cookiecutter.component_slug}}{{cookiecutter.component_explicit_component_suffix}}{{cookiecutter.component_impl_suffix}}(void) :
#endif
m_state(false)
{}
Expand All @@ -37,7 +37,7 @@ namespace {{cookiecutter.component_namespace}} {
void {{cookiecutter.component_slug}}{{cookiecutter.component_explicit_component_suffix}}{{cookiecutter.component_impl_suffix}} ::
blink()
{
this->gpio_out(0, m_state);
this->gpio_out(0, m_state);
}
{% endif %}
{{cookiecutter.component_slug}}{{cookiecutter.component_explicit_component_suffix}}{{cookiecutter.component_impl_suffix}} ::
Expand All @@ -56,8 +56,8 @@ namespace {{cookiecutter.component_namespace}} {
NATIVE_UINT_TYPE context
)
{
blink();
m_state = !m_state;
blink();
m_state = !m_state;
}

} // end namespace {{cookiecutter.component_namespace}}

0 comments on commit b80ebc9

Please sign in to comment.