Hi,
I hope someone can help me with my goal. I want to include my infrarot sensor value in the stabilizer.c file for reaching that the sensor values enable the motor. I have include the parameter to enable the motors abd I have the driver from the sensor.
21:41:17 **** Build of configuration Build (GNU) for project crazyflie-firmware ****
make all DEBUG=0 CLOAD=1
CLEAN_VERSION
VTMPL version.c
CC version.o
CC infrarot.o
deck/drivers/src/infrarot.c:13:1: warning: data definition has no type or storage class
dat=5;
^
deck/drivers/src/infrarot.c:13:1: warning: type defaults to 'int' in declaration of 'dat' [-Wimplicit-int]
deck/drivers/src/infrarot.c:13:1: error: conflicting types for 'dat'
tools/make/targets.mk:26: recipe for target 'infrarot.o' failed
deck/drivers/src/infrarot.c:12:7: note: previous declaration of 'dat' was here
float dat;
^
deck/drivers/src/infrarot.c:14:1: warning: data definition has no type or storage class
getData(dat);
^
deck/drivers/src/infrarot.c:14:1: warning: type defaults to 'int' in declaration of 'getData' [-Wimplicit-int]
deck/drivers/src/infrarot.c:14:1: warning: parameter names (without types) in function declaration
deck/drivers/src/infrarot.c:14:1: error: conflicting types for 'getData'
In file included from deck/drivers/src/infrarot.c:4:0:
./header.h:1:7: note: previous definition of 'getData' was here
float getData(dat)
^
make: *** [infrarot.o] Error 1
21:41:18 Build Finished (took 697ms)
Crazyflier - my CF journal... 4x Crazyflie Nano (1.0) 10-DOF + NeoPixel Ring mod.
3x Crazyflie 2.0 + Qi Charger and LED Decks.
Raspberry Pi Ground Control.
Mac OS X Dev Environment.
Walkera Devo7e, ESky ET6I, PS3 and iOS Controllers.
22:25:01 **** Build of configuration Build (GNU) for project crazyflie-firmware ****
make all DEBUG=0 CLOAD=1
ERROR: One or more of the git submodules are not initialized. Try
make: *** [check_submodules] Error 255
git submodule init
git submodule update
Makefile:357: recipe for target 'check_submodules' failed
22:25:02 Build Finished (took 829ms)
Crazyflier - my CF journal... 4x Crazyflie Nano (1.0) 10-DOF + NeoPixel Ring mod.
3x Crazyflie 2.0 + Qi Charger and LED Decks.
Raspberry Pi Ground Control.
Mac OS X Dev Environment.
Walkera Devo7e, ESky ET6I, PS3 and iOS Controllers.