I have recently started "playing" with my Crazyflie 2.1 and wanted to configure the firmware flashing process.
For that I was using already preconfigured VM provided by Bitcraze. I changed the LED color as described in this tutorial: https://www.bitcraze.io/getting-started ... ource-code. Everything was working fine till the point where I tried to build the project. After pressing the build button I've got 4 errors of such character:
Code: Select all
.//src/modules/src/outlierFilter.c:107:40: error: initializer element is not constant
static const int32_t lhMinWindowTime = -2 * lhTicksPerFrame;
^
.//src/modules/src/outlierFilter.c:108:40: error: initializer element is not constant
static const int32_t lhMaxWindowTime = 5 * lhTicksPerFrame;
^
.//src/modules/src/outlierFilter.c:109:48: error: initializer element is not constant
static const int32_t lhBadSampleWindowChange = -lhTicksPerFrame;
^
.//src/modules/src/outlierFilter.c:110:49: error: initializer element is not constant
static const int32_t lhGoodSampleWindowChange = lhTicksPerFrame / 2;
^~~~~~~~~~~~~~~
tools/make/targets.mk:26: recipe for target 'outlierFilter.o' failed
Makefile:350: recipe for target 'build' failed
make[1]: *** [outlierFilter.o] Error 1
make: *** [build] Error 2
Thank you very much in advance!