Skip to content

Commit

Permalink
slightly update dronecan application
Browse files Browse the repository at this point in the history
  • Loading branch information
PonomarevDA committed Nov 12, 2023
1 parent 00183cf commit b0b0d1e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
8 changes: 1 addition & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,7 @@ if(USE_DRONECAN)
${libparamsPath}/platform_specific/stm32f103/
${dronecanHeaders}
)
set(applicationSourceCode
Src/dronecan_application/application.cpp
Src/dronecan_application/params.cpp
)
set(applicationHeaders
Src/dronecan_application
)
include(Src/dronecan_application/CMakeLists.txt)
else()
add_definitions(-DBXCAN_MAX_IFACE_INDEX=0)
include(Libs/Cyphal/CMakeLists.txt)
Expand Down
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@ An example of connection scheme suitable for bench test for Mini v2 node and RL

<img src="assets/connection.png" alt="drawing">

For details refer to: [Programmer usage](https://docs.raccoonlab.co/guide/programmer_sniffer/programmer.html) and [Sniffer usage](https://docs.raccoonlab.co/guide/programmer_sniffer/sniffer.html#_4-1-cyphal-usage) pages.
You can also use other sniffer and programmers. For details refer to: [Programmer usage](https://docs.raccoonlab.co/guide/programmer_sniffer/programmer.html) and [Sniffer usage](https://docs.raccoonlab.co/guide/programmer_sniffer/sniffer.html#_4-1-cyphal-usage) pages.

**Step 3. Build the project and upload the firmware**

```bash
make generate_dsdl # you need to call it only before the first build
make generate_dsdl # you need to call it only before the first build
make cyphal
make upload
make upload # it works only with RaccoonLab sniffer-programmer yet
```

As a short form, you can build and upload the firmware with a single command:
Expand All @@ -90,6 +90,9 @@ source scripts/init.sh
~/Download/Yukon
```

Please, refer to the [Mini node docs](https://docs.raccoonlab.co/guide/can_pwm/can_pwm_cyphal.html).
It has a detailed steps about how to perform bench testing of the node.

**Q&A**

If you are strugguling with the software building, please refer to the build workflow [.github/workflows/build.yml](.github/workflows/build.yml) for a hint. If it doesn't help, you can open an issue.
Expand Down
11 changes: 11 additions & 0 deletions Src/dronecan_application/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
set(applicationSourceCode
Src/periphery/pwm/pwm.cpp
Src/periphery/led/led.cpp

Src/dronecan_application/application.cpp
Src/dronecan_application/params.cpp
)
set(applicationHeaders
Src
Src/dronecan_application
)

0 comments on commit b0b0d1e

Please sign in to comment.