Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error for controller with mellinger #334

Closed
kyuhyong opened this issue Jun 19, 2018 · 1 comment
Closed

Build error for controller with mellinger #334

kyuhyong opened this issue Jun 19, 2018 · 1 comment
Milestone

Comments

@kyuhyong
Copy link

I fresh git cloned the fw, submodule update
I modified the Makefile to use mellinger
ESTIMATOR ?= kalman
CONTROLLER ?= mellinger # one of Any, PID, Mellinger

When tried to build by calling make PLATFORM=CF2 I got error below.

src/modules/src/controller.c: In function 'controllerInit':
<command-line>:0:17: error: 'ControllerTypemellinger' undeclared (first use in this function)
src/modules/src/controller.c:38:37: note: in expansion of macro 'CONTROLLER_NAME'
   ControllerType forcedController = CONTROLLER_NAME;
                                     ^
<command-line>:0:17: note: each undeclared identifier is reported only once for each function it appears in
src/modules/src/controller.c:38:37: note: in expansion of macro 'CONTROLLER_NAME'
   ControllerType forcedController = CONTROLLER_NAME;
                                     ^
tools/make/targets.mk:26: recipe for target 'controller.o' failed

I realized controller.c is newly added and looks like there is a bug in it.

@kyuhyong
Copy link
Author

Nevermind, changing mellinger to Mellinger actually correct the error.
My mistake.

@krichardsson krichardsson modified the milestone: next-version Aug 6, 2018
@krichardsson krichardsson added this to the next-version milestone Oct 17, 2018
cafeciaojoe pushed a commit to cafeciaojoe/crazyflie-firmware that referenced this issue Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants