This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
doc:crazyflie:api:firmware:deck:howto [2015-12-09 15:26] arnaud |
doc:crazyflie:api:firmware:deck:howto [2017-08-08 11:30] arnaud [Enabling the driver] |
||
---|---|---|---|
Line 2: | Line 2: | ||
This howto is going to describe step-by-step how to make and flash your first | This howto is going to describe step-by-step how to make and flash your first | ||
- | Crazyflie 2.0 deck driver. | + | Crazyflie 2.0 deck driver. See the deck [[doc: |
===== Development environment ===== | ===== Development environment ===== | ||
Line 45: | Line 45: | ||
===== Adding the driver to the build ===== | ===== Adding the driver to the build ===== | ||
- | Add this to the Makefile, after the line containing | + | Add this to the Makefile, after the line '# Decks': |
<code make> | <code make> | ||
Line 53: | Line 53: | ||
===== Enabling the driver ===== | ===== Enabling the driver ===== | ||
- | Decks can contain | + | Decks can have a memory that contains its name. In our case the hello driver would be initialised only when a deck identified as " |
<code make config.mk> | <code make config.mk> | ||
Line 62: | Line 62: | ||
DEBUG=1 allows to get more information from the Crazyflie console when it starts. Debug should not be enabled if you intend to fly the Crazyflie out of the lab (it disables the watchdog). | DEBUG=1 allows to get more information from the Crazyflie console when it starts. Debug should not be enabled if you intend to fly the Crazyflie out of the lab (it disables the watchdog). | ||
+ | |||
+ | <WRAP center round info> | ||
+ | // | ||
+ | </ | ||
+ | |||
===== Compile, flash and run! ===== | ===== Compile, flash and run! ===== | ||
Line 68: | Line 73: | ||
<code bash> | <code bash> | ||
- | $ make | + | crazyflie-firmware$ make |
- | $ make cload | + | crazyflie-firmware$ make cload |
</ | </ | ||
Line 75: | Line 80: | ||
<code bash> | <code bash> | ||
- | $ make | + | crazyflie-firmware$ make |
- | (..) | + | (...) |
CC hello.o | CC hello.o | ||
(...) | (...) | ||
Line 86: | Line 91: | ||
| | ||
rm version.c | rm version.c | ||
- | $ make cload | + | crazyflie-firmware$ make cload |
../ | ../ | ||
Restart the Crazyflie you want to bootload in the next | Restart the Crazyflie you want to bootload in the next | ||
Line 106: | Line 111: | ||
Now you can connect your Crazyflie with the client and see your driver in the console! | Now you can connect your Crazyflie with the client and see your driver in the console! | ||
+ | {{ : | ||