fixed TARGET/TARGETDIR mismatch in airborne makefiles

This commit is contained in:
Antoine Drouin
2005-08-26 22:02:56 +00:00
parent 2724e7d25c
commit e73d7c5718
10 changed files with 20 additions and 14 deletions
+2 -2
View File
@@ -26,7 +26,7 @@
# Edit the configuration part to suit your local install
#
OBJDIR = $(PAPARAZZI_HOME)/var/$(AIRCRAFT)/$(TARGET)
OBJDIR = $(PAPARAZZI_HOME)/var/$(AIRCRAFT)/$(TARGETDIR)
CC = $(ATMELBIN)/avr-gcc -mmcu=$(ARCH)
LD = $(CC) $(ATMEL_LIBPATH)
@@ -124,7 +124,7 @@ check_arch :
if ($(UISP) $(UISP_FLAGS) 2>&1 | tr '[:upper:]' '[:lower:]' | grep $(ARCH)); then : ; else echo "Wrong architecture (mcu0 vs mcu1 ?)"; exit 1; fi
avr_clean:
cd $(OBJDIR); rm -f *.hex *.elf *.out core *.o *.a *~ *.s *.cm* .depend
rm -rf $(OBJDIR)
#
+4 -5
View File
@@ -17,11 +17,10 @@
<blocks>
<block NAME="init">
<go hmode="route" wp="HOME"/>
<go hmode="route" wp="HOME" wp_qdr="0" wp_dist="500"/>
<go hmode="route" wp="HOME" wp_qdr="90" wp_dist="500"/>
<go hmode="route" wp="HOME"/>
<go wp="HOME"/>
<go hmode="route" wp="HOME" wp_qdr="0" wp_dist="500" from="HOME"/>
<go hmode="route" wp="HOME" wp_qdr="90" wp_dist="500" from="HOME" from_qdr="0" from_dist="500"/>
<go hmode="route" wp="HOME" from="HOME" from_qdr="90" from_dist="500"/>
<circle wp="HOME" alt="GROUND_ALT+50" radius="75"/>
</block>
</blocks>
+1
View File
@@ -31,6 +31,7 @@ ACINCLUDE = $(PAPARAZZI_HOME)/var/$(AIRCRAFT)
ARCH = atmega128
TARGET = autopilot
TARGETDIR = autopilot
LOW_FUSE = e0
HIGH_FUSE = 99
+6 -6
View File
@@ -45,7 +45,7 @@
float phi_c, theta_c;
float target_x, target_y;
void cam_manual() {
void cam_manual( void ) {
int16_t yaw = from_fbw.channels[RADIO_YAW];
if (yaw > MIN_PPRZ_CAM || yaw < -MIN_PPRZ_CAM) {
phi_c += FLOAT_OF_PPRZ(yaw, 0, DELTA_ALPHA);
@@ -60,12 +60,12 @@ void cam_manual() {
}
}
void cam_nadir() {
void cam_nadir( void ) {
phi_c = -estimator_phi;
theta_c = -estimator_theta;
}
void cam_target() {
void cam_target( void ) {
float h = estimator_z - target_alt;
float c_psi = cos(estimator_psi);
float s_psi = sin(estimator_psi);
@@ -75,7 +75,7 @@ void cam_target() {
#define MAX_DIST_TARGET 500.
void cam_manual_target() {
void cam_manual_target( void ) {
int16_t yaw = from_fbw.channels[RADIO_YAW];
if (yaw > MIN_PPRZ_CAM || yaw < -MIN_PPRZ_CAM) {
target_x += FLOAT_OF_PPRZ(yaw, 0, -20.);
@@ -91,13 +91,13 @@ void cam_manual_target() {
cam_target();
}
void cam_waypoint_target(uint8_t wp) {
void cam_waypoint_target( uint8_t wp ) {
target_x = waypoints[wp].x;
target_y = waypoints[wp].y;
cam_target();
}
void cam_carrot() {
void cam_carrot( void ) {
target_x = carrot_x;
target_y = carrot_y;
cam_target();
+2
View File
@@ -25,6 +25,8 @@
* \brief Regroup all functions link to \a ir
*/
#include <stdlib.h>
#include "adc.h"
#include "infrared.h"
#include "autopilot.h"
+1 -1
View File
@@ -4,7 +4,7 @@ all:
@echo "call with 'make TARGET=... compile (or load)'"
TARGET=check_uart
TARGETDIR=autopilot/test
ARCH = atmega128
VARINCLUDE = ../../../var/include
INCLUDES = -I .. -I ../../../include -I $(VARINCLUDE)
+1
View File
@@ -24,6 +24,7 @@ LOCAL_CFLAGS= $(CTL_BRD_FLAGS)
ARCH = atmega8
TARGET = fbw
TARGETDIR = fbw
#LOW_FUSE = 3f # crystal #
#LOW_FUSE = 31 # internal 1MHz #
#LOW_FUSE = 1e # ceramic resonator slow rising power p26 #
+1
View File
@@ -28,6 +28,7 @@ LOCAL_CFLAGS= $(CTL_BRD_FLAGS)
ARCH = atmega8
TARGET = check_uart
TARGETDIR = fbw/check_uart
VARINCLUDE = $(PAPARAZZI_HOME)/var/include
@@ -318,6 +318,7 @@ sub set_item {
# print "in Strip::set_item $item_name $string $color ($self->{prefix})\n";
my $zinc = $self->get('-zinc');
my $item = $zinc->find('withtag', $self->{prefix}.$item_name."_value");
print "in Strip::set_item $item_name $string color $color\n";
$zinc->itemconfigure($item, -text => $string, -color => $color);
}
+1
View File
@@ -22,6 +22,7 @@
ARCH = atmega8
TARGET = modem_gnd
TARGETDIR = modem_gnd
LOW_FUSE = 3f
HIGH_FUSE = cb
EXT_FUSE= ff