errors during compile time when using the energy control #2

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

errors during compile time when using the energy control #2

Chris Efstathiou
Here are the errors i always get when i use the energy type of control on my airplanes.
Btw the previous errors i found when trying to compile the Mentor Energy airplane using the version 5.8 tarball are caused by a settings file included in the default aircraft configuration.
Chris

firmwares/fixedwing/guidance/energy_ctrl.c:154:1: note: #pragma message: Info: V_CTL_GLIDE_RATIO not defined - default is 8.
 INFO("V_CTL_GLIDE_RATIO not defined - default is 8.")
 ^
CC /home/hendrix/paparazzi/var/aircrafts/X8_pitot/ap/subsystems/radio_control/ppm.o
CC /home/hendrix/paparazzi/var/aircrafts/X8_pitot/ap/arch/stm32/subsystems/radio_control/ppm_arch.o
CC /home/hendrix/paparazzi/var/aircrafts/X8_pitot/ap/firmwares/fixedwing/nav.o
In file included from ./firmwares/fixedwing/nav.h:34:0,
                 from firmwares/fixedwing/nav.c:32:
firmwares/fixedwing/nav.c: In function 'nav_ground_speed_loop':
firmwares/fixedwing/nav.c:218:11: error: 'v_ctl_auto_throttle_max_cruise_throttle' undeclared (first use in this function)
           v_ctl_auto_throttle_max_cruise_throttle);
           ^
/home/hendrix/paparazzi/sw/include/std.h:111:43: note: in definition of macro 'Bound'
 #define Bound(_x, _min, _max) { if (_x > (_max)) _x = (_max); else if (_x < (_min)) _x = (_min); }
                                           ^
firmwares/fixedwing/nav.c:218:11: note: each undeclared identifier is reported only once for each function it appears in
           v_ctl_auto_throttle_max_cruise_throttle);
           ^
/home/hendrix/paparazzi/sw/include/std.h:111:43: note: in definition of macro 'Bound'
 #define Bound(_x, _min, _max) { if (_x > (_max)) _x = (_max); else if (_x < (_min)) _x = (_min); }
                                           ^
firmwares/fixedwing/nav.c:217:48: error: 'v_ctl_auto_throttle_min_cruise_throttle' undeclared (first use in this function)
     Bound(v_ctl_auto_throttle_cruise_throttle, v_ctl_auto_throttle_min_cruise_throttle,
                                                ^
/home/hendrix/paparazzi/sw/include/std.h:111:78: note: in definition of macro 'Bound'
 #define Bound(_x, _min, _max) { if (_x > (_max)) _x = (_max); else if (_x < (_min)) _x = (_min); }
                                                                              ^
CC /home/hendrix/paparazzi/var/aircrafts/X8_pitot/ap/subsystems/navigation/common_flight_plan.o
CC /home/hendrix/paparazzi/var/aircrafts/X8_pitot/ap/subsystems/navigation/traffic_info.o
make[1]: *** [/home/hendrix/paparazzi/var/aircrafts/X8_pitot/ap/firmwares/fixedwing/nav.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/home/hendrix/paparazzi/sw/airborne'
make: *** [ap.compile] Error 2
make: Leaving directory `/home/hendrix/paparazzi'

_______________________________________________
Paparazzi-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
Reply | Threaded
Open this post in threaded view
|

Re: errors during compile time when using the energy control #2

flixr
Administrator
Can you please post your airframe file?
All example airframes (conf/conf_example.xml) compile without errors (including Mentor Energy)...

On Fri, Mar 18, 2016 at 7:08 PM, hendrixgr . <[hidden email]> wrote:
Here are the errors i always get when i use the energy type of control on my airplanes.
Btw the previous errors i found when trying to compile the Mentor Energy airplane using the version 5.8 tarball are caused by a settings file included in the default aircraft configuration.
Chris

firmwares/fixedwing/guidance/energy_ctrl.c:154:1: note: #pragma message: Info: V_CTL_GLIDE_RATIO not defined - default is 8.
 INFO("V_CTL_GLIDE_RATIO not defined - default is 8.")
 ^
CC /home/hendrix/paparazzi/var/aircrafts/X8_pitot/ap/subsystems/radio_control/ppm.o
CC /home/hendrix/paparazzi/var/aircrafts/X8_pitot/ap/arch/stm32/subsystems/radio_control/ppm_arch.o
CC /home/hendrix/paparazzi/var/aircrafts/X8_pitot/ap/firmwares/fixedwing/nav.o
In file included from ./firmwares/fixedwing/nav.h:34:0,
                 from firmwares/fixedwing/nav.c:32:
firmwares/fixedwing/nav.c: In function 'nav_ground_speed_loop':
firmwares/fixedwing/nav.c:218:11: error: 'v_ctl_auto_throttle_max_cruise_throttle' undeclared (first use in this function)
           v_ctl_auto_throttle_max_cruise_throttle);
           ^
/home/hendrix/paparazzi/sw/include/std.h:111:43: note: in definition of macro 'Bound'
 #define Bound(_x, _min, _max) { if (_x > (_max)) _x = (_max); else if (_x < (_min)) _x = (_min); }
                                           ^
firmwares/fixedwing/nav.c:218:11: note: each undeclared identifier is reported only once for each function it appears in
           v_ctl_auto_throttle_max_cruise_throttle);
           ^
/home/hendrix/paparazzi/sw/include/std.h:111:43: note: in definition of macro 'Bound'
 #define Bound(_x, _min, _max) { if (_x > (_max)) _x = (_max); else if (_x < (_min)) _x = (_min); }
                                           ^
firmwares/fixedwing/nav.c:217:48: error: 'v_ctl_auto_throttle_min_cruise_throttle' undeclared (first use in this function)
     Bound(v_ctl_auto_throttle_cruise_throttle, v_ctl_auto_throttle_min_cruise_throttle,
                                                ^
/home/hendrix/paparazzi/sw/include/std.h:111:78: note: in definition of macro 'Bound'
 #define Bound(_x, _min, _max) { if (_x > (_max)) _x = (_max); else if (_x < (_min)) _x = (_min); }
                                                                              ^
CC /home/hendrix/paparazzi/var/aircrafts/X8_pitot/ap/subsystems/navigation/common_flight_plan.o
CC /home/hendrix/paparazzi/var/aircrafts/X8_pitot/ap/subsystems/navigation/traffic_info.o
make[1]: *** [/home/hendrix/paparazzi/var/aircrafts/X8_pitot/ap/firmwares/fixedwing/nav.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/home/hendrix/paparazzi/sw/airborne'
make: *** [ap.compile] Error 2
make: Leaving directory `/home/hendrix/paparazzi'

_______________________________________________
Paparazzi-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel



_______________________________________________
Paparazzi-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel