diff --git a/Makefile.ac b/Makefile.ac index 22b883e59b..cdd479e849 100644 --- a/Makefile.ac +++ b/Makefile.ac @@ -155,7 +155,7 @@ $(SETTINGS_TELEMETRY) : $(PERIODIC_H) %.upload: %.compile cd $(AIRBORNE); $(MAKE) TARGET=$* upload -jsbsim jsbsim.compile: jsbsim.ac_h +jsbsim jsbsim.compile: jsbsim.ac_h print_version cd $(AIRBORNE); $(MAKE) TARGET=jsbsim ARCHI=jsbsim ARCH=jsbsim all sim sim.compile: sim.ac_h print_version diff --git a/conf/airframes/examples/microjet_lisa_m.xml b/conf/airframes/examples/microjet_lisa_m.xml index 202fe5d999..6ed7c1bed7 100644 --- a/conf/airframes/examples/microjet_lisa_m.xml +++ b/conf/airframes/examples/microjet_lisa_m.xml @@ -20,9 +20,6 @@ - - - diff --git a/conf/airframes/examples/microjet_twog_aspirin.xml b/conf/airframes/examples/microjet_twog_aspirin.xml index 8160835491..c777bc0f44 100644 --- a/conf/airframes/examples/microjet_twog_aspirin.xml +++ b/conf/airframes/examples/microjet_twog_aspirin.xml @@ -26,9 +26,6 @@ - - - diff --git a/conf/airframes/fraser_lisa_m_rotorcraft.xml b/conf/airframes/fraser_lisa_m_rotorcraft.xml index 4c8b7765d2..a232a41767 100644 --- a/conf/airframes/fraser_lisa_m_rotorcraft.xml +++ b/conf/airframes/fraser_lisa_m_rotorcraft.xml @@ -30,9 +30,6 @@ - - - diff --git a/sw/airborne/Makefile b/sw/airborne/Makefile index 0dd7b7f31c..dea5860293 100644 --- a/sw/airborne/Makefile +++ b/sw/airborne/Makefile @@ -45,6 +45,10 @@ ifneq ($(MAKECMDGOALS),clean) endif endif + ifdef PRINT_CONFIG + $(TARGET).CFLAGS += -DPRINT_CONFIG + endif + # sort cflags and sources to throw out duplicates # #$(info CFLAGS_orig = $($(TARGET).CFLAGS)) diff --git a/sw/supervision/paparazzicenter.glade b/sw/supervision/paparazzicenter.glade index cee69a6eb5..c59f210306 100644 --- a/sw/supervision/paparazzicenter.glade +++ b/sw/supervision/paparazzicenter.glade @@ -1,17 +1,20 @@ - + - + True + False window1 32 True + False True + False process name 20 @@ -25,9 +28,15 @@ True True - + + False + False + True + True + True + True 1 @@ -37,6 +46,7 @@ True False Automatic respawn + False True @@ -55,6 +65,7 @@ True True False + False True @@ -71,6 +82,7 @@ False True False + False True @@ -84,24 +96,32 @@ True + False Paparazzi Center True + False True + False True + False + False _A/C True + False gtk-new True + False + False True True @@ -112,6 +132,8 @@ gtk-delete True + False + False True True @@ -122,6 +144,8 @@ gtk-save True + False + False True True @@ -130,12 +154,15 @@ True + False gtk-quit True + False + False True True @@ -148,14 +175,19 @@ True + False + False Session True + False gtk-new True + False + False True True @@ -165,6 +197,8 @@ gtk-save True + False + False True True @@ -174,6 +208,8 @@ gtk-delete True + False + False True True @@ -186,6 +222,8 @@ True + False + False _Tools True @@ -194,15 +232,20 @@ True + False + False _View True + False gtk-fullscreen True + False + False True True @@ -216,13 +259,18 @@ True + False + False _Help True + False True + False + False _About True @@ -248,20 +296,25 @@ 250 400 True + False True + False True + False 0 True + False 12 True + False @@ -272,6 +325,7 @@ True + False <b>A/C</b> True @@ -281,16 +335,20 @@ + True + True 0 True + False 0 True + False 12 @@ -298,8 +356,12 @@ True ID of the aircraft (number from 1 to 255) 3 - + 3 + False + False + True + True @@ -307,6 +369,7 @@ True + False <b>id</b> True @@ -316,28 +379,36 @@ + True + True 1 True + False 0 True + False 12 True + False True + False + True + True 0 @@ -348,6 +419,7 @@ True False Color selector + False True @@ -363,6 +435,7 @@ True + False <b>GUI color</b> True @@ -372,12 +445,15 @@ + True + True 2 False + True 0 @@ -391,27 +467,35 @@ True + False True + False True + False 0 True + False 12 True + False 2 True + False ________________ + True + True 0 @@ -422,6 +506,7 @@ True False Browse + False True @@ -437,6 +522,7 @@ True False Launch the GCS editor or a text editor (gedit or EDITOR env variable if set) + False True @@ -452,6 +538,7 @@ True + False <b>Airframe</b> True @@ -462,26 +549,33 @@ False + True 0 True + False 0 True + False 12 True + False True + False _________________ + True + True 0 @@ -491,6 +585,7 @@ True True False + False True @@ -506,6 +601,7 @@ True False Launch a text editor (gedit or EDITOR env variable if set) + False True @@ -521,6 +617,7 @@ True + False <b>Flight plan</b> True @@ -531,20 +628,24 @@ False + True 1 True + False 0 True + False 12 True + False 4 @@ -553,21 +654,26 @@ False + True + True 0 True + False False + True 1 True + False gtk-add @@ -576,6 +682,7 @@ True True Add a settings file + False True True @@ -593,6 +700,7 @@ True True Launch an editor on all the settings file + False True @@ -608,6 +716,7 @@ True True Remove the selected settings file + False True @@ -630,6 +739,7 @@ True + False <b>Settings</b> True @@ -640,26 +750,33 @@ False + True 2 True + False 0 True + False 12 True + False True + False _________________ + True + True 0 @@ -669,6 +786,7 @@ True True False + False True @@ -683,6 +801,7 @@ True True False + False True @@ -698,6 +817,7 @@ True + False <b>Radio</b> True @@ -708,26 +828,33 @@ False + True 3 True + False 0 True + False 12 True + False True + False _________________ + True + True 0 @@ -737,6 +864,7 @@ True True False + False True @@ -751,6 +879,7 @@ True True False + False True @@ -766,6 +895,7 @@ True + False <b>Telemetry</b> True @@ -776,6 +906,7 @@ False + True 4 @@ -785,6 +916,8 @@ + True + True 1 @@ -797,29 +930,35 @@ True + False True + False 3 True + False 1 - True True + False True + False 0 True + False 12 True + False @@ -830,6 +969,7 @@ True + False <b>Target</b> True @@ -839,6 +979,8 @@ + True + True 0 @@ -848,18 +990,22 @@ True False Add a target in the combo list + False True + False 0 0 True + False 2 True + False gtk-add @@ -871,6 +1017,7 @@ True + False New Target True @@ -901,24 +1048,29 @@ True + False True True True False + False True + False 0 0 True + False 2 True + False gtk-clear @@ -930,6 +1082,7 @@ True + False Clean True @@ -957,18 +1110,22 @@ True False Build the selected target of the selected A/C. Warning: Save is required before this action + False True + False 0 0 True + False 2 True + False gtk-convert @@ -980,6 +1137,7 @@ True + False Build True @@ -1007,18 +1165,22 @@ True False Upload into the airborne device (which must be plugged !). + False True + False 0 0 True + False 2 True + False gtk-go-up @@ -1030,6 +1192,7 @@ True + False Upload True @@ -1057,39 +1220,64 @@ 1 + + + print config at build time + True + True + False + Enable configuration messages at build time (PRINT_CONFIG). + False + True + + + True + True + 2 + + + True + True 0 True + False False + True 1 True + False 1 True True + False True + False 0 True + False 12 True + False @@ -1100,6 +1288,7 @@ True + False <b>Session</b> True @@ -1109,6 +1298,8 @@ + True + True 0 @@ -1118,6 +1309,7 @@ True True False + False True @@ -1138,18 +1330,22 @@ True True False + False True + False 0 0 True + False 2 True + False gtk-clear @@ -1161,6 +1357,7 @@ True + False Stop/Remove All Processes True @@ -1183,33 +1380,40 @@ + True + True 2 True + False False + True 3 False + True 0 True + False False + True 1 @@ -1225,6 +1429,8 @@ + True + True 2 @@ -1236,12 +1442,15 @@ + True + True 1 True + False False diff --git a/sw/supervision/pc_aircraft.ml b/sw/supervision/pc_aircraft.ml index 6d715d9115..005945ab75 100644 --- a/sw/supervision/pc_aircraft.ml +++ b/sw/supervision/pc_aircraft.ml @@ -384,8 +384,11 @@ let build_handler = fun ~file gui ac_combo (target_combo:Gtk_tools.combo) (log:s try ( let ac_name = Gtk_tools.combo_value ac_combo and target = Gtk_tools.combo_value target_combo in - let target = if target="sim" then target else sprintf "%s.compile" target in - Utils.command ~file gui log ac_name target + let target_cmd = if gui#checkbutton_printconfig#active then + sprintf "PRINT_CONFIG=1 %s.compile" target + else + sprintf "%s.compile" target in + Utils.command ~file gui log ac_name target_cmd ) with _ -> log "ERROR: Nothing to build!!!\n" in ignore (gui#button_build#connect#clicked ~callback);