paparazzi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Paparazzi-devel] Control new with airspeed sensor - compiling warning


From: Eduardo lavratti
Subject: [Paparazzi-devel] Control new with airspeed sensor - compiling warning
Date: Sat, 7 Feb 2015 23:58:33 -0200

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;
         ^

reply via email to

[Prev in Thread] Current Thread [Next in Thread]