Skip to content

Commit

Permalink
merge dev
Browse files Browse the repository at this point in the history
  • Loading branch information
dewagter committed Mar 5, 2012
2 parents cf2dca2 + 258d93a commit 55dda79
Show file tree
Hide file tree
Showing 868 changed files with 11,586 additions and 20,452 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
/conf/conf.xml.20*
/conf/control_panel.xml
/conf/%gconf.xml
/conf/srtm_data/*
/conf/maps_data/*
/conf/maps.xml
/conf/gps/ublox_conf
Expand Down Expand Up @@ -166,3 +165,8 @@
/sw/airborne/test/test_algebra
/sw/airborne/test/test_matrix
/sw/airborne/test/test_att

/sw/airborne/test/ahrs/run_ahrs_on_synth

# Mac OS X
.DS_Store
17 changes: 5 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -251,22 +251,19 @@ dist_clean :
@echo "Warning: This removes all non-repository files. This means you will loose your aircraft list, your maps, your logfiles, ... if you want this, then run: make dist_clean_irreversible"

dist_clean_irreversible: clean
rm -rf conf/srtm_data
rm -rf conf/maps_data conf/maps.xml
rm -rf conf/conf.xml conf/controlpanel.xml
rm -rf var

ab_clean:
find sw/airborne -name '*~' -exec rm -f {} \;

test_all_example_airframes:
$(MAKE) AIRCRAFT=BOOZ2_A1 clean_ac ap sim
$(MAKE) AIRCRAFT=Microjet clean_ac ap sim
$(MAKE) AIRCRAFT=Tiny_IMU clean_ac ap
$(MAKE) AIRCRAFT=EasyStar_ETS clean_ac ap sim
test_all_example_airframes: replace_current_conf_xml
for ap in `grep name conf/conf.xml.example | sed -e 's/.*name=\"//' | sed -e 's/".*//'`; do for airframe in `grep $$ap conf/conf.xml.example | sed -e 's/.*airframe=\"//' | sed -e 's/".*//'`; do for target in `grep target conf/$$airframe | grep name | sed -e 's/.*name=\"//' | sed -e 's/\".*//'`; do echo "Making $$ap $$target"; make -C ./ AIRCRAFT=$$ap clean_ac $$target.compile || exit 1; done; done; done

test_all_example_airframes2:
for ap in `grep name conf/conf.xml.example | sed -e 's/.*name=\"//' | sed -e 's/"//'`; do echo "Making $$ap"; make -C ./ AIRCRAFT=$$ap clean_ac ap.compile; done
replace_current_conf_xml:
test conf/conf.xml || mv conf/conf.xml conf/conf.xml.backup.`date +%Y%m%d-%H%M%s`
cp conf/conf.xml.example conf/conf.xml

commands: paparazzi sw/simulator/launchsitl

Expand All @@ -278,8 +275,4 @@ sw/simulator/launchsitl:
cat src/$(@F) | sed s#OCAMLRUN#$(OCAMLRUN)# | sed s#OCAML#$(OCAML)# > $@
chmod a+x $@

#.SUFFIXES: .hgt.zip

%.hgt.zip:
cd data/srtm; $(MAKE) $(@)

48 changes: 0 additions & 48 deletions Makefile.sys

This file was deleted.

2 changes: 1 addition & 1 deletion conf/Makefile.lpc21
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ OPT = s

CSTANDARD = -std=gnu99

CINCS = $(INCLUDES) -I $(SRC_ARCH)/include
CINCS = $(INCLUDES) -I$(SRC_ARCH)/include

# Compiler flags.
CFLAGS = $(CINCS)
Expand Down
21 changes: 8 additions & 13 deletions conf/Makefile.sim
Original file line number Diff line number Diff line change
Expand Up @@ -51,22 +51,17 @@ ifneq ($(SIM_TYPE),JSBSIM)
INCLUDES += -I `ocamlc -where`
endif

CFLAGS = \
-W -Wall \
$(INCLUDES) \
$($(TARGET).CFLAGS) \
$(LOCAL_CFLAGS) \
-O2 \

# meschach prototypes trigger numerous warnings
ifneq ($(SIM_TYPE),BOOZ)
CFLAGS = -W -Wall
CFLAGS += $(INCLUDES)
CFLAGS += $($(TARGET).CFLAGS)
CFLAGS += $(LOCAL_CFLAGS)
CFLAGS += -O2

ifneq ($(SIM_TYPE),JSBSIM)
CFLAGS += -Wstrict-prototypes
endif
CFLAGS += -std=gnu99
endif


LDFLAGS = -lm \
LDFLAGS = -lm

ifeq ($(SIM_TYPE),BOOZ)
LDFLAGS += $($(TARGET).LDFLAGS)
Expand Down
20 changes: 17 additions & 3 deletions conf/Makefile.stm32
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ CP = $(GCC_BIN_PREFIX)-objcopy
DMP = $(GCC_BIN_PREFIX)-objdump
NM = $(GCC_BIN_PREFIX)-nm
SIZE = $(GCC_BIN_PREFIX)-size
GDB = $(GCC_BIN_PREFIX)-gdb
RM = rm

# If we can't find the toolchain then try picking up the compilers from the path
Expand All @@ -62,8 +63,10 @@ CP = $(shell which arm-none-eabi-objcopy)
DMP = $(shell which arm-none-eabi-objdump)
NM = $(shell which arm-none-eabi-nm)
SIZE = $(shell which arm-none-eabi-size)
GDB = $(shell which arm-none-eabi-gdb)
RM = rm
GCC_LIB_DIR=$(shell dirname `which arm-none-eabi-gcc`)/../arm-none-eabi/lib
TOOLCHAIN_DIR=$(shell dirname `which arm-none-eabi-gcc`)
GCC_LIB_DIR=$(TOOLCHAIN_DIR)/../arm-none-eabi/lib
endif

# Detect if we are using the new libopencm3 or the old libopenstm32
Expand Down Expand Up @@ -250,19 +253,30 @@ ifeq ($(FLASH_MODE),SERIAL)
upload: $(OBJDIR)/$(TARGET).bin
$(LOADER) -p /dev/ttyUSB0 -b 115200 -e -w -v $^
else ifeq ($(FLASH_MODE),JTAG)
upload: $(OBJDIR)/$(TARGET).elf
ifeq ($(BMP_PORT),)
upload: $(OBJDIR)/$(TARGET).elf
@echo "Using OOCD = $(OOCD)"
@echo " OOCD\t$<"
$(Q)$(OOCD) -f interface/$(OOCD_INTERFACE).cfg \
-f board/$(OOCD_BOARD).cfg \
-c init \
-c "reset halt" \
-c "reset init" \
-c "stm32x mass_erase 0" \
-c "stm32f1x mass_erase 0" \
-c "flash write_image $<" \
-c reset \
-c shutdown
else
upload: $(OBJDIR)/$(TARGET).elf
@echo "Using Black Magic Probe"
@echo "Using GDB = $(GDB)"
@echo " BMP\t$<"
$(Q)$(GDB) --batch \
-ex 'target extended-remote $(BMP_PORT)' \
-x $(TOOLCHAIN_DIR)/arm-none-eabi/share/libopencm3/scripts/black_magic_probe_flash.scr \
$<
endif
else
upload:
@echo unknown flash_mode $(FLASH_MODE)
endif
Expand Down
47 changes: 6 additions & 41 deletions conf/airframes/CDW/ChimuLisaFw.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,37 +44,6 @@
<define name="MAX_PITCH" value="0.6"/>
</section>

<section name="INFRARED" prefix="IR_">
<define name="ADC_IR1_NEUTRAL" value="2048"/>
<define name="ADC_IR2_NEUTRAL" value="2048"/>
<define name="ADC_TOP_NEUTRAL" value="2048"/>

<define name="LATERAL_CORRECTION" value="1."/>
<define name="LONGITUDINAL_CORRECTION" value="1."/>
<define name="VERTICAL_CORRECTION" value="1.5"/>

<define name="HORIZ_SENSOR_TILTED" value="1"/>
<define name="IR2_SIGN" value="-1"/>
<define name="TOP_SIGN" value="-1"/>

<define name="ROLL_NEUTRAL_DEFAULT" value="-3.6" unit="deg"/>
<define name="PITCH_NEUTRAL_DEFAULT" value="5" unit="deg"/>

<define name="CORRECTION_UP" value="1."/>
<define name="CORRECTION_DOWN" value="1."/>
<define name="CORRECTION_LEFT" value="1."/>
<define name="CORRECTION_RIGHT" value="1."/>
</section>

<section name="GYRO" prefix="GYRO_">
<define name="ADC_ROLL_NEUTRAL" value="500"/>
<define name="DYNAMIC_RANGE" value="300" unit="deg/s"/>
<define name="ADXRS300_RESISTOR_BRIDGE" value="(3.3/(3.3+1.8))"/>
<define name="ADXRS300_SENSITIVITY" value="5" unit="mV/(deg/s)"/>
<define name="ROLL_SCALE" value="3.3*1000./1024./(GYRO_ADXRS300_SENSITIVITY*GYRO_ADXRS300_RESISTOR_BRIDGE)" unit="deg/s/adc_unit"/>
<define name="ROLL_DIRECTION" value="1."/>
</section>

<section name="BAT">
<define name="MILLIAMP_AT_FULL_THROTTLE" value="2000"/>

Expand All @@ -92,9 +61,6 @@

<define name="DEFAULT_CIRCLE_RADIUS" value="80."/>

<define name="GLIDE_AIRSPEED" value="10"/>
<define name="GLIDE_VSPEED" value="3."/>
<define name="GLIDE_PITCH" value="45" unit="deg"/>
</section>

<section name="VERTICAL CONTROL" prefix="V_CTL_">
Expand All @@ -121,9 +87,9 @@
<section name="HORIZONTAL CONTROL" prefix="H_CTL_">
<define name="COURSE_PGAIN" value="-1.4"/>

<define name="ROLL_MAX_SETPOINT" value="0.6" unit="radians"/>
<define name="PITCH_MAX_SETPOINT" value="0.5" unit="radians"/>
<define name="PITCH_MIN_SETPOINT" value="-0.5" unit="radians"/>
<define name="ROLL_MAX_SETPOINT" value="0.6" unit="rad"/>
<define name="PITCH_MAX_SETPOINT" value="0.5" unit="rad"/>
<define name="PITCH_MIN_SETPOINT" value="-0.5" unit="rad"/>

<define name="PITCH_PGAIN" value="-12000."/>
<define name="PITCH_DGAIN" value="1.5"/>
Expand Down Expand Up @@ -156,8 +122,8 @@

<section name="SIMU">
<define name="JSBSIM_MODEL" value="&quot;Malolo1&quot;"/>
<define name="JSBSIM_IR_ROLL_NEUTRAL" value="RadOfDeg(0.)"/>
<define name="JSBSIM_IR_PITCH_NEUTRAL" value="RadOfDeg(0.)"/>
<define name="JSBSIM_IR_ROLL_NEUTRAL" value="0." unit="deg"/>
<define name="JSBSIM_IR_PITCH_NEUTRAL" value="0." unit="deg"/>
</section>

<section name="INS" prefix="INS_">
Expand Down Expand Up @@ -188,8 +154,7 @@
</subsystem>

<subsystem name="control"/>
<!-- Sensors
<subsystem name="gyro" type="roll"/> -->
<!-- Sensors -->
<subsystem name="gps" type="ublox_utm"/>
<subsystem name="navigation"/>

Expand Down
9 changes: 3 additions & 6 deletions conf/airframes/CDW/ChimuTinyFw.xml
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,6 @@

<define name="DEFAULT_CIRCLE_RADIUS" value="80."/>

<define name="GLIDE_AIRSPEED" value="10"/>
<define name="GLIDE_VSPEED" value="3."/>
<define name="GLIDE_PITCH" value="45" unit="deg"/>
</section>

<section name="VERTICAL CONTROL" prefix="V_CTL_">
Expand Down Expand Up @@ -116,9 +113,9 @@
<define name="COURSE_DGAIN" value="0.3"/>
<define name="COURSE_PRE_BANK_CORRECTION" value="0.2"/>

<define name="ROLL_MAX_SETPOINT" value="0.75" unit="radians"/>
<define name="PITCH_MAX_SETPOINT" value="0.5" unit="radians"/>
<define name="PITCH_MIN_SETPOINT" value="-0.5" unit="radians"/>
<define name="ROLL_MAX_SETPOINT" value="0.75" unit="rad"/>
<define name="PITCH_MAX_SETPOINT" value="0.5" unit="rad"/>
<define name="PITCH_MIN_SETPOINT" value="-0.5" unit="rad"/>

<define name="PITCH_PGAIN" value="-12000."/>
<define name="PITCH_DGAIN" value="0"/>
Expand Down
9 changes: 3 additions & 6 deletions conf/airframes/CDW/ChimuTinyFwSpi.xml
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,6 @@

<define name="DEFAULT_CIRCLE_RADIUS" value="80."/>

<define name="GLIDE_AIRSPEED" value="10"/>
<define name="GLIDE_VSPEED" value="3."/>
<define name="GLIDE_PITCH" value="45" unit="deg"/>
</section>

<section name="VERTICAL CONTROL" prefix="V_CTL_">
Expand Down Expand Up @@ -116,9 +113,9 @@
<define name="COURSE_DGAIN" value="0.3"/>
<define name="COURSE_PRE_BANK_CORRECTION" value="0.2"/>

<define name="ROLL_MAX_SETPOINT" value="0.9" unit="radians"/>
<define name="PITCH_MAX_SETPOINT" value="0.5" unit="radians"/>
<define name="PITCH_MIN_SETPOINT" value="-0.5" unit="radians"/>
<define name="ROLL_MAX_SETPOINT" value="0.9" unit="rad"/>
<define name="PITCH_MAX_SETPOINT" value="0.5" unit="rad"/>
<define name="PITCH_MIN_SETPOINT" value="-0.5" unit="rad"/>

<define name="PITCH_PGAIN" value="-12000."/>
<define name="PITCH_DGAIN" value="0"/>
Expand Down
2 changes: 1 addition & 1 deletion conf/airframes/CDW/LisaAspirin2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@
<configure name="PERIODIC_FREQUENCY" value="120"/>
<configure name="AHRS_PROPAGATE_FREQUENCY" value="100"/>
<configure name="AHRS_CORRECT_FREQUENCY" value="100"/>
<define name="AHRS_TRIGGERED_ATTITUDE_LOOP" />
<define name="AHRS_TRIGGERED_ATTITUDE_LOOP" />

<configure name="AHRS_ALIGNER_LED" value="1"/>
<configure name="CPU_LED" value="1"/>
Expand Down
Loading

0 comments on commit 55dda79

Please sign in to comment.