Skip to content

Commit

Permalink
Phase 1 State Machine changes (nasa/fprime#2829) (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-bc authored Sep 19, 2024
1 parent cca5681 commit f809068
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Components/Led/Led.fpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module Components {
format "Invalid Blinking Argument: {}"

@ Reports the state we set to blinking.
event SetBlinkingState(state: Fw.On) \
event SetBlinkingState($state: Fw.On) \
severity activity high \
format "Set blinking state to {}."

Expand Down
6 changes: 3 additions & 3 deletions docs/component-implementation-1.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@ Save the file, exit the text editor, and run the following in the `led-blinker/C
fprime-util impl
```

This command will auto generate two files: Led.hpp-template and Led.cpp-template. These files contain the stub implementation for the component. These should now include stubs for this newly added command.
This command will auto generate two files: Led.template.hpp and Led.template.cpp. These files contain the stub implementation for the component. These should now include stubs for this newly added command.

Inside your `led-blinker/Components/Led` directory, open `Led.hpp-template` and copy the following block of code. Paste it in replacement of the `TODO_cmdHandler` block in `Led.hpp`.
Inside your `led-blinker/Components/Led` directory, open `Led.template.hpp` and copy the following block of code. Paste it in replacement of the `TODO_cmdHandler` block in `Led.hpp`.

```cpp
//! Implementation for BLINKING_ON_OFF command handler
Expand All @@ -161,7 +161,7 @@ Inside your `led-blinker/Components/Led` directory, open `Led.hpp-template` and
) override;
```
Inside your `led-blinker/Components/Led` directory, open `Led.cpp-template` and copy the following block of code and paste it into `Led.cpp` replacing the `TODO_cmdHandler` block.
Inside your `led-blinker/Components/Led` directory, open `Led.template.cpp` and copy the following block of code and paste it into `Led.cpp` replacing the `TODO_cmdHandler` block.
```cpp
void Led ::
Expand Down
4 changes: 2 additions & 2 deletions docs/component-implementation-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ In your `led-blinker/Components/Led` directory, run the following to autogenerat
fprime-util impl
```

In your `led-blinker/Components/Led` directory, open `Led.hpp-template` file and copy this block over to `Led.hpp` as we did before
In your `led-blinker/Components/Led` directory, open `Led.template.hpp` file and copy this block over to `Led.hpp` as we did before

```cpp
PRIVATE:
Expand All @@ -183,7 +183,7 @@ In your `led-blinker/Components/Led` directory, open `Led.hpp-template` file and
);
```
In your `led-blinker/Components/Led` directory, open `Led.cpp-template` file and copy this block over to `Led.cpp`.
In your `led-blinker/Components/Led` directory, open `Led.template.cpp` file and copy this block over to `Led.cpp`.
```cpp
// ----------------------------------------------------------------------
// Handler implementations for user-defined typed input ports
Expand Down

0 comments on commit f809068

Please sign in to comment.