demo Makefile target out of date

This commit is contained in:
Pascal Brisset
2007-12-06 06:45:48 +00:00
parent a60b95bef1
commit dcce09ff16
2 changed files with 32 additions and 56 deletions
+3 -16
View File
@@ -39,31 +39,18 @@ SETTINGS_H=$(ACINCLUDE)/settings.h
SETTINGS_XMLS=$(patsubst %,$(CONF)/%,$(SETTINGS)) SETTINGS_XMLS=$(patsubst %,$(CONF)/%,$(SETTINGS))
SETTINGS_XML=$(ACINCLUDE)/settings.xml SETTINGS_XML=$(ACINCLUDE)/settings.xml
MAKEFILE_AC=$(ACINCLUDE)/Makefile.ac MAKEFILE_AC=$(ACINCLUDE)/Makefile.ac
SUPERVISION=sw/supervision/paparazzi.pl SUPERVISION=./paparazzi
MAKE=make PAPARAZZI_SRC=$(PAPARAZZI_SRC) PAPARAZZI_HOME=$(PAPARAZZI_HOME) MAKE=make PAPARAZZI_SRC=$(PAPARAZZI_SRC) PAPARAZZI_HOME=$(PAPARAZZI_HOME)
# "make Q=''" to get full echo # "make Q=''" to get full echo
Q=@ Q=@
help:
@echo "'paparazzi-make init' to init your configuration"
@echo "'paparazzi-make demo' to compile demo aircraft and simulate them"
@echo "'paparazzi-make AIRCRAFT=<ac_name> [sim|ap.<action>|fbw.<action>|clean_ac]' where <action> is 'compile' or 'upload'"
init: init:
@[ -d $(PAPARAZZI_HOME) ] || (echo "Copying config example in your $(PAPARAZZI_HOME) directory"; mkdir -p $(PAPARAZZI_HOME); cp -a conf $(PAPARAZZI_HOME); cp -a data $(PAPARAZZI_HOME); mkdir -p $(PAPARAZZI_HOME)/var/maps; mv $(PAPARAZZI_HOME)/data/maps/trtqtttqtsrrt*.jpg $(PAPARAZZI_HOME)/var/maps) @[ -d $(PAPARAZZI_HOME) ] || (echo "Copying config example in your $(PAPARAZZI_HOME) directory"; mkdir -p $(PAPARAZZI_HOME); cp -a conf $(PAPARAZZI_HOME); cp -a data $(PAPARAZZI_HOME); mkdir -p $(PAPARAZZI_HOME)/var/maps; mv $(PAPARAZZI_HOME)/data/maps/trtqtttqtsrrt*.jpg $(PAPARAZZI_HOME)/var/maps)
demo: ac1 ac2 ac3 demo:
PAPARAZZI_HOME=$(PAPARAZZI_HOME) PAPARAZZI_SRC=$(PAPARAZZI_SRC) $(SUPERVISION) $(SUPERVISION)
ac1 :
$(MAKE) -f Makefile.ac AIRCRAFT=Twin1 sim
ac2 :
$(MAKE) -f Makefile.ac AIRCRAFT=TJ1 sim
ac3 :
$(MAKE) -f Makefile.ac AIRCRAFT=MJ5 sim
all_ac_h: $(AIRFRAME_H) $(RADIO_H) $(FLIGHT_PLAN_H) $(FLIGHT_PLAN_XML) $(SETTINGS_H) $(MAKEFILE_AC) $(PERIODIC_H) all_ac_h: $(AIRFRAME_H) $(RADIO_H) $(FLIGHT_PLAN_H) $(FLIGHT_PLAN_XML) $(SETTINGS_H) $(MAKEFILE_AC) $(PERIODIC_H)
+29 -40
View File
@@ -25,22 +25,19 @@ Paparazzi is an attempt to develop a cheap fixed wing UAV (Unmanned Air
Vehicle). As of today we have successfully flown autonomously several small Vehicle). As of today we have successfully flown autonomously several small
electro powered fixed wing aircraft (Twinstar, Microjet, ...). electro powered fixed wing aircraft (Twinstar, Microjet, ...).
Up to date informations are available from the websites Up to date informations are available from the wiki website
www.nongnu.org/paparazzi paparazzi.enac.fr
www.recherche.enac.fr/paparazzi
and from the mailing list and the IRC channem. Documentation is edited in and from the mailing list (http://savannah.nongnu.org/mail/?group=paparazzi)
the wiki and the IRC channel (freenode, #paparazzi).
www.recherche.enac.fr/paparazzi/doc Directories quick and dirty description:
---------------------------------------
Directories description:
-----------------------
conf: the configuration directory (airframe, radio, ... descriptions). conf: the configuration directory (airframe, radio, ... descriptions).
data: where to put read-only data (e.g. maps and terrain elevation files) data: where to put read-only data (e.g. maps, terrain elevation files, icons)
hw: hardware (electronic schemas, PCBs, ...) hw: hardware (electronic schemas, PCBs, ...)
@@ -55,53 +52,45 @@ Required Software
----------------- -----------------
- OCaml (ocaml.org), xml-light library (http://tech.motion-twin.com/xmllight) - OCaml (ocaml.org), xml-light library (http://tech.motion-twin.com/xmllight)
- gcc, GTK2, Glib2, libgnomecanvas, libxml2 - gcc, GTK2, Glib2, libgnomecanvas, libxml2
- AVR or ARM7 micro-controller development environnment (gcc, loader, libc, binutils) - ARM7 micro-controller development environnment (gcc, loader, libc, binutils)
- ... - ...
For Debian users: Required packages are available at For Debian users: Required packages are available at
http://www.recherche.enac.fr/paparazzi/debian http://www.recherche.enac.fr/paparazzi/debian
Installation of the meta-package "paparazzi-dev" will install everything Installation of the meta-package "paparazzi-dev" will install
needed to compile this project (if something is missing, please ask) everything needed to compile this project (if something is missing,
please ask) for simulation. "paparazzi-arm7" is required to compile
the code for the ARM based boards.
Compilation Compilation and demo simulation
----------- -------------------------------
1) "make" in the top directory 1) "make" in the top directory to compile all the tools.
2) "make demo" to run a demo (c.f. www.recherche.enac.fr/paparazzi/doc/moin.cgi/GettingStarted/Simulation) 2) "./paparazzi" to run the Paparazzi Center
3) "make AIRCRAFT=<name> <target>.compile" compiles the airborne code for the specified target and aircraft 3) Select the "MJ5" or the "TJ1" aircraft in the upper-left A/C
combo box. Select "sim" from upper-middle "target" combo box. Click
"Build". When the compilation is finished, select "Simulation" from
the upper-right session combo box and click "Execute".
4) "make AIRCRAFT=<name> sim" compiles the simulator for the specified aircraft. 4) In the GCS, wait about 10s for the aircraft to be in the "Holding
point" navigation block. Switch to the "Takeoff" block (lower-left
5) "make AIRCRAFT=<name> clean_ac" cleans files for the specified aircraft. blue airway button in the strip). Takeoff with the green launch button.
Uploading of the embedded software Uploading of the embedded software
---------------------------------- ----------------------------------
1) Power the flight controller board. Plug the pc-link to the board. 1) Power the flight controller board while it is connected to the PC with
the USB cable.
2) Upload with 2) From the Paparazzi center, select the "ap" target, and click "Upload".
make AIRCRAFT=<name> fbw.upload # Fly by wire
make AIRCRAFT=<name> ap.upload # Autopilot
Important notes for bi-microcontroller avr boards:
- The pclink must be switched accordingly with the target
- The "fly by wire" controller cannot be uploaded when the
"autopilot" controller is running. They cannot independently be
modified; then an upload of the fly by wire usually requires
make AIRCRAFT=<name> ap.erase
make AIRCRAFT=<name> fbw.upload
make AIRCRAFT=<name> ap.upload
Running the ground segment monitoring Flight
------------------------------------- -------------------------------------
1) "sw/supervision/paparazzi.pl" runs the ground control station supervision 1) From the Paparazzi Center, select the flight session and ... do
the same than in simulation !
2) Choose the appropriate session