|
From: | Nicolas Quendez |
Subject: | Re: [Paparazzi-devel] Float error in Camera Module |
Date: | Tue, 7 Oct 2014 14:20:01 -0300 |
Felix, I use 5.3 Paparazzi version. Here the output errors when using the wiki datas : In file included from ./inter_mcu.h:43:0, from modules/cam_control/cam.h:31, from modules/cam_control/cam.c:28: /home/nicolas/paparazzi/var/aircrafts/WED/ap/generated/airframe.h:269:21: error: floating constant in preprocessor _expression_ #define CAM_PAN_MAX 0.7853981625 ^ modules/cam_control/cam.c:51:6: note: in expansion of macro 'CAM_PAN_MAX' #if (CAM_PAN_MAX == CAM_PAN_NEUTRAL) ^ /home/nicolas/paparazzi/var/aircrafts/WED/ap/generated/airframe.h:270:25: error: floating constant in preprocessor _expression_ #define CAM_PAN_NEUTRAL 0. ^ modules/cam_control/cam.c:51:21: note: in expansion of macro 'CAM_PAN_NEUTRAL' #if (CAM_PAN_MAX == CAM_PAN_NEUTRAL) ^ modules/cam_control/cam.c:52:2: error: #error CAM_PAN_MAX has to be different from CAM_PAN_NEUTRAL #error CAM_PAN_MAX has to be different from CAM_PAN_NEUTRAL ^ In file included from ./inter_mcu.h:43:0, from modules/cam_control/cam.h:31, from modules/cam_control/cam.c:28: /home/nicolas/paparazzi/var/aircrafts/WED/ap/generated/airframe.h:270:25: error: floating constant in preprocessor _expression_ #define CAM_PAN_NEUTRAL 0. ^ modules/cam_control/cam.c:54:6: note: in expansion of macro 'CAM_PAN_NEUTRAL' #if (CAM_PAN_NEUTRAL == CAM_PAN_MIN) ^ /home/nicolas/paparazzi/var/aircrafts/WED/ap/generated/airframe.h:271:22: error: floating constant in preprocessor _expression_ #define CAM_PAN_MIN -0.7853981625 ^ modules/cam_control/cam.c:54:25: note: in expansion of macro 'CAM_PAN_MIN' #if (CAM_PAN_NEUTRAL == CAM_PAN_MIN) ^ modules/cam_control/cam.c:55:2: error: #error CAM_PAN_MIN has to be different from CAM_PAN_NEUTRAL #error CAM_PAN_MIN has to be different from CAM_PAN_NEUTRAL ^ In file included from ./inter_mcu.h:43:0, from modules/cam_control/cam.h:31, from modules/cam_control/cam.c:28: /home/nicolas/paparazzi/var/aircrafts/WED/ap/generated/airframe.h:265:22: error: floating constant in preprocessor _expression_ #define CAM_TILT_MAX 0.523598775 ^ modules/cam_control/cam.c:61:7: note: in expansion of macro 'CAM_TILT_MAX' #if ((CAM_TILT_MAX) == (CAM_TILT_NEUTRAL)) ^ /home/nicolas/paparazzi/var/aircrafts/WED/ap/generated/airframe.h:266:26: error: floating constant in preprocessor _expression_ #define CAM_TILT_NEUTRAL 0. ^ modules/cam_control/cam.c:61:25: note: in expansion of macro 'CAM_TILT_NEUTRAL' #if ((CAM_TILT_MAX) == (CAM_TILT_NEUTRAL)) ^ modules/cam_control/cam.c:62:2: error: #error CAM_TILT_MAX has to be different from CAM_TILT_NEUTRAL #error CAM_TILT_MAX has to be different from CAM_TILT_NEUTRAL ^ In file included from ./inter_mcu.h:43:0, from modules/cam_control/cam.h:31, from modules/cam_control/cam.c:28: /home/nicolas/paparazzi/var/aircrafts/WED/ap/generated/airframe.h:266:26: error: floating constant in preprocessor _expression_ #define CAM_TILT_NEUTRAL 0. ^ modules/cam_control/cam.c:64:6: note: in expansion of macro 'CAM_TILT_NEUTRAL' #if (CAM_TILT_NEUTRAL == CAM_TILT_MIN) ^ /home/nicolas/paparazzi/var/aircrafts/WED/ap/generated/airframe.h:267:23: error: floating constant in preprocessor _expression_ #define CAM_TILT_MIN -0.523598775 ^ modules/cam_control/cam.c:64:26: note: in expansion of macro 'CAM_TILT_MIN' #if (CAM_TILT_NEUTRAL == CAM_TILT_MIN) ^ modules/cam_control/cam.c:65:2: error: #error CAM_TILT_MIN has to be different from CAM_TILT_NEUTRAL #error CAM_TILT_MIN has to be different from CAM_TILT_NEUTRAL ^ modules/cam_control/cam.c:132:1: warning: data definition has no type or storage class [enabled by default] chute = 0; ^ modules/cam_control/cam.c:132:1: warning: type defaults to 'int' in declaration of 'chute' [enabled by default] modules/cam_control/cam.c: In function 'cam_periodic': modules/cam_control/cam.c:139:5: warning: switch missing default case [-Wswitch-default] switch (cam_mode) { ^ make[1]: *** [/home/nicolas/paparazzi/var/aircrafts/WED/ap/modules/cam_control/cam.o] Error 1 make[1]: Leaving directory `/home/nicolas/paparazzi/sw/airborne' make: *** [ap.compile] Error 2 make: Leaving directory `/home/nicolas/paparazzi' FAILED 'make -C /home/nicolas/paparazzi -f Makefile.ac AIRCRAFT=WED ap.compile' with code 2 Best regards Nicolas Le 7 oct. 2014 à 13:54, Felix Ruess <address@hidden> a écrit :
|
[Prev in Thread] | Current Thread | [Next in Thread] |