|
From: | Felix Ruess |
Subject: | Re: [Paparazzi-devel] Control new with airspeed sensor - compiling warning |
Date: | Sun, 8 Feb 2015 12:58:00 +0100 |
After upgraded the pprz i get this error when using control_new with use_airspeed
firmwares/fixedwing/guidance/guidance_v_n.c: In function 'v_ctl_set_airspeed':
firmwares/fixedwing/guidance/guidance_v_n.c:323:9: warning: declaration of 'err_vz' shadows a global declaration [-Wshadow]
float err_vz = v_ctl_climb_setpoint - stateGetSpeedEnu_f()->z;
^
firmwares/fixedwing/guidance/guidance_v_n.c:119:9: warning: shadowed declaration is here [-Wshadow]
float err_vz;
^
firmwares/fixedwing/guidance/guidance_v_n.c:324:9: warning: declaration of 'd_err_vz' shadows a global declaration [-Wshadow]
float d_err_vz = (err_vz - last_err_vz) * AIRSPEED_LOOP_PERIOD;
^
firmwares/fixedwing/guidance/guidance_v_n.c:120:9: warning: shadowed declaration is here [-Wshadow]
float d_err_vz;
^
firmwares/fixedwing/guidance/guidance_v_n.c:335:9: warning: declaration of 'err_airspeed' shadows a global declaration [-Wshadow]
float err_airspeed = v_ctl_auto_airspeed_setpoint - *stateGetAirspeed_f();
^
firmwares/fixedwing/guidance/guidance_v_n.c:121:9: warning: shadowed declaration is here [-Wshadow]
float err_airspeed;
^
firmwares/fixedwing/guidance/guidance_v_n.c:336:9: warning: declaration of 'd_err_airspeed' shadows a global declaration [-Wshadow]
float d_err_airspeed = (err_airspeed - last_err_as) * AIRSPEED_LOOP_PERIOD;
^
firmwares/fixedwing/guidance/guidance_v_n.c:122:9: warning: shadowed declaration is here [-Wshadow]
float d_err_airspeed;
^
_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
[Prev in Thread] | Current Thread | [Next in Thread] |