blandry / crazyflie-tools

A collection of tools to develop controllers for the Crazyflie using Drake
MIT License
76 stars 45 forks source link

Implicit function declaration in CF2 firmware #16

Open peteflorence opened 9 years ago

peteflorence commented 9 years ago

CF2 firmware now finished compiling, with only the warnings as follows:

@blandry help?

modules/src/system.c: In function 'systemTask':

modules/src/system.c:139:3: warning: implicit declaration of function 'commanderInit' [-Wimplicit-function-declaration] commanderInit(); ^ modules/src/system.c:140:3: warning: implicit declaration of function 'stabilizerInit' [-Wimplicit-function-declaration] stabilizerInit(); ^ modules/src/system.c:148:3: warning: implicit declaration of function 'commanderTest' [-Wimplicit-function-declaration] pass &= commanderTest(); ^ modules/src/system.c:149:3: warning: implicit declaration of function 'stabilizerTest' [-Wimplicit-function-declaration]

blandry commented 9 years ago

Check that the header "commander.h" and "stabilizer.h" are at the top of system.c. Also check the header files, they should declare the function the warnings are complaining about.

peteflorence commented 9 years ago

Thanks, system.c didn't have those headers

It now compiles without any warnings, but finishes with this

Build Tarball build: Build from GIT tree for accurate versioning () MODIFIED
CrazyLoader build!
rm version.c

(Your code and stock code compiles with something like SUCCESS instead of MODIFIED)

peteflorence commented 9 years ago

Status now is:

So, no cigar yet, but development environment is set up