This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
doc:crazyflie:api:firmware:deck:howto [2015-12-09 15:36] arnaud |
doc:crazyflie:api:firmware:deck:howto [2020-05-12 14:24] kimberly |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | <WRAP center round important 60%> | ||
+ | This page has deprecated and moved to the new documentation framework of the main Bitcraze website. Please go to [[https:// | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
====== Making your first Deck driver ====== | ====== Making your first Deck driver ====== | ||
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.X deck driver. See the deck [[doc: |
===== Development environment ===== | ===== Development environment ===== | ||
Line 45: | Line 51: | ||
===== 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> | ||
- | PROJ_OBJ_CF2 | + | PROJ_OBJ |
</ | </ | ||
===== 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 68: | ||
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 79: | ||
<code bash> | <code bash> | ||
- | $ make | + | crazyflie-firmware$ make |
- | $ make cload | + | crazyflie-firmware$ make cload |
</ | </ | ||
Line 75: | Line 86: | ||
<code bash> | <code bash> | ||
- | $ make | + | crazyflie-firmware$ make |
- | (..) | + | (...) |
CC hello.o | CC hello.o | ||
(...) | (...) | ||
Line 86: | Line 97: | ||
| | ||
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 |