Skip to content

Commit

Permalink
This commit was generated by cvs2svn to compensate for changes in r2,
Browse files Browse the repository at this point in the history
which included commits to RCS files with non-trunk default branches.
  • Loading branch information
poine committed Jan 25, 2005
1 parent 06f262c commit 9907c23
Show file tree
Hide file tree
Showing 297 changed files with 36,428 additions and 0 deletions.
2 changes: 2 additions & 0 deletions AUTHORS
@@ -0,0 +1,2 @@
Pascal Brisset <pascal_dot_brisset_at_free_dot_fr>
Antoine Drouin <antoine_dot_drouin_at_free_dot_fr>
15 changes: 15 additions & 0 deletions BUGS
@@ -0,0 +1,15 @@
paparazzi.pl
CpGui et CpSeesionManager n'ont pas les meme variables !!!




receive
ne cree pas son repertoire de log et meurt





visu3D
ne trouve pas son fichier d'aide. a mettre dans conf ??
339 changes: 339 additions & 0 deletions COPYING

Large diffs are not rendered by default.

119 changes: 119 additions & 0 deletions Makefile
@@ -0,0 +1,119 @@
# Paparazzi main $Id$
# Copyright (C) 2004 Pascal Brisset Antoine Drouin
#
# This file is part of paparazzi.
#
# paparazzi is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# paparazzi is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with paparazzi; see the file COPYING. If not, write to
# the Free Software Foundation, 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.

include conf/Makefile.local

LIB=sw/lib
AIRBORNE=sw/airborne
CONFIGURATOR=sw/configurator
FBW=$(AIRBORNE)/fly_by_wire
AP=$(AIRBORNE)/autopilot
COCKPIT=sw/ground_segment/cockpit
TMTC=sw/ground_segment/tmtc
WIND=sw/ground_segment/wind
VISU3D=sw/ground_segment/visu3d
LOGALIZER=sw/logalizer
SIMULATOR=sw/simulator
MAKE=make

static : lib tools configurator cockpit tmtc visu3d logalizer sim_static wind

configure : configurator
PAPARAZZI_DIR=`pwd` $(CONFIGURATOR)/configurator

lib:
cd $(LIB)/ocaml; $(MAKE)
cd $(LIB)/perl; $(MAKE)

tools:
cd $(TOOLS); make

logalizer: lib
cd $(LOGALIZER); $(MAKE)

configurator: lib
cd $(CONFIGURATOR); $(MAKE)

sim_static :
cd $(SIMULATOR); $(MAKE)

sim_sitl :
cd $(SIMULATOR); $(MAKE) sim_sitl

fbw fly_by_wire:
cd $(FBW); $(MAKE) all

ap autopilot:
cd $(AP); $(MAKE) all

upload_fbw: fbw
cd $(FBW); $(MAKE) upload

upload_ap: ap
cd $(AP); $(MAKE) upload

erase_fbw:
cd $(FBW); $(MAKE) erase

erase_ap:
cd $(AP); $(MAKE) erase

airborne: fbw ap

cockpit: lib
cd $(COCKPIT); $(MAKE) all

tmtc: lib
cd $(TMTC); $(MAKE) all

visu3d: lib
cd $(VISU3D); $(MAKE)
wind:
cd $(WIND); $(MAKE)

receive: tmtc
$(TMTC)/receive

static_h :
make -f Makefile.gen

ac_h :
$(TOOLS)/gen_aircraft.out $(AIRCRAFT)

ac: static_h ac_h ap fbw sim_sitl

clean_ac :
rm -fr $(PAPARAZZI_HOME)/var/$(AIRCRAFT)

run_sitl :
$(PAPARAZZI_HOME)/var/$(AIRCRAFT)/sim/simsitl.out

t1: ac

install : static t1
./Makefile.pl -install -destdir $(DESTDIR)

uninstall :
./Makefile.pl -uninstall -destdir $(DESTDIR)

clean:
find . -name Makefile -mindepth 2 -exec sh -c '$(MAKE) -C `dirname {}` $@' \;
find . -name '*~' -exec rm -f {} \;

53 changes: 53 additions & 0 deletions Makefile.ac
@@ -0,0 +1,53 @@
# Paparazzi main $Id$
# Copyright (C) 2004 Pascal Brisset Antoine Drouin
#
# This file is part of paparazzi.
#
# paparazzi is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# paparazzi is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with paparazzi; see the file COPYING. If not, write to
# the Free Software Foundation, 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.

# Preprocessing of XML configuration files

include conf/Makefile.local

CONF=$(PAPARAZZI_HOME)/conf
CONF_XML=$(CONF)/conf.xml
ACINCLUDE = $(PAPARAZZI_HOME)/var/$(AIRCRAFT)
AIRFRAME_H=$(ACINCLUDE)/airframe.h
RADIO_H=$(ACINCLUDE)/radio.h
FLIGHT_PLAN_H=$(ACINCLUDE)/flight_plan.h
INFLIGHT_CALIB_H=$(ACINCLUDE)/inflight_calib.h

all: $(AIRFRAME_H) $(RADIO_H) $(FLIGHT_PLAN_H) $(INFLIGHT_CALIB_H)
echo $(AIRFRAME_H) $(CONF)/$(AIRFRAME)

$(AIRFRAME_H) : $(CONF)/$(AIRFRAME) $(CONF_XML)
$(TOOLS)/gen_airframe.out $(AIRCRAFT) $< > /tmp/airframe.h
mv /tmp/airframe.h $@

$(RADIO_H) : $(CONF)/$(RADIO) $(CONF_XML)
$(TOOLS)/gen_radio.out $< > /tmp/radio.h
mv /tmp/radio.h $@

$(FLIGHT_PLAN_H) : $(CONF)/$(FLIGHT_PLAN) $(CONF_XML)
$(TOOLS)/gen_flight_plan.out $< > /tmp/fp.h
mv /tmp/fp.h $@

$(INFLIGHT_CALIB_H) : $(CONF)/$(FLIGHT_PLAN) $(CONF_XML)
$(TOOLS)/gen_calib.out $< > /tmp/c.h
mv /tmp/c.h $@

clean :
rm -f $(ACINCLUDE)/*.h
47 changes: 47 additions & 0 deletions Makefile.gen
@@ -0,0 +1,47 @@
# Paparazzi main $Id$
# Copyright (C) 2004 Pascal Brisset Antoine Drouin
#
# This file is part of paparazzi.
#
# paparazzi is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# paparazzi is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with paparazzi; see the file COPYING. If not, write to
# the Free Software Foundation, 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.

# Preprocessing of XML configuration files

include conf/Makefile.local

CONF=conf
XML_GET=sw/lib/ocaml/xml_get.out


STATICINCLUDE =$(PAPARAZZI_HOME)/var/include
MESSAGES_H=$(STATICINCLUDE)/messages.h
UBX_PROTOCOL_H=$(STATICINCLUDE)/ubx_protocol.h
MESSAGES_XML = $(CONF)/messages.xml
UBX_XML = $(CONF)/ubx.xml


static: $(MESSAGES_H) $(UBX_PROTOCOL_H)

$(MESSAGES_H) : $(MESSAGES_XML) $(CONF_XML)
$(TOOLS)/gen_messages.out $< telemetry_ap > /tmp/messages.h
mv /tmp/messages.h $@

$(UBX_PROTOCOL_H) : $(UBX_XML) $(CONF_XML)
$(TOOLS)/gen_ubx.out $< > /tmp/ubx.h
mv /tmp/ubx.h $@

clean :
rm -f $(H_OF_XML)
72 changes: 72 additions & 0 deletions Makefile.pl
@@ -0,0 +1,72 @@
#!/usr/bin/perl -w

use strict;
use File::Basename;
use Getopt::Long;
use Data::Dumper;
use XML::DOM;

my $destdir="/usr";
my $install = undef;
my $uninstall = undef;
my @sections;

GetOptions("install" => \$install,
"uninstall" => \$uninstall,
"destdir=s" => \$destdir);

read_xml("./conf/install.xml");

foreach my $section (@sections) {
my ($inst_dir, $files) = @{$section};
do_install($inst_dir, $files) if ($install);
do_uninstall($inst_dir, $files) if ($uninstall);
}

sub do_install {
my ($dest_dir, $files) = @_;
`install -d $dest_dir`;# or warn "creation of directory $dest_dir failed";
foreach my $file (@{$files}) {
my ($path, $new_name) = @{$file};
print "installing file $path in $dest_dir ".($new_name?"as $new_name":"")."\n";
my $cmd = "install $path $dest_dir".($new_name?"/$new_name":"");
`$cmd`;# or warn "intall of $path failed";
}
}

sub do_uninstall {
my ($dest_dir, $files) = @_;
foreach my $file (@{$files}) {
my ($path, $new_name) = @{$file};
my $to_be_removed = $dest_dir."/".($new_name?"$new_name":basename($path));
print "removing $to_be_removed\n";
`rm -f $to_be_removed`;
}
}

sub read_xml {
my ($filename) = @_;
my $parser = XML::DOM::Parser->new();
my $doc = $parser->parsefile($filename);
my $cp = $doc->getElementsByTagName("install")->[0];
my $sections = $cp->getElementsByTagName("section");
foreach my $section (@{$sections}) {
my $section_name = $section->getAttribute('name');
my $dest_loc = $destdir."/".$section->getAttribute('dest');
my $files = $section->getElementsByTagName("file");
my $file_a = [];
foreach my $file (@{$files}) {
push @{$file_a}, [$file->getAttribute('name'), $file->getAttribute('new_name')];
}
my $dirs = $section->getElementsByTagName("directory");
foreach my $dir (@{$dirs}) {
my $dirname=$dir->getAttribute('name');
opendir(DIR,$dirname);
my @dir_files = grep { -f "$dirname/$_" } readdir(DIR);
map { s#^(.*)#$dirname/$1# } @dir_files;
closedir(DIR);
push @{$file_a}, @dir_files;
}
push @sections, [$dest_loc, $file_a];
}
}

0 comments on commit 9907c23

Please sign in to comment.