mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-02 13:27:32 +08:00
Merge branch 'dev' of github.com:paparazzi/paparazzi into hardware_test
This commit is contained in:
@@ -28,6 +28,8 @@
|
|||||||
#include "LPC21xx.h"
|
#include "LPC21xx.h"
|
||||||
#include BOARD_CONFIG
|
#include BOARD_CONFIG
|
||||||
|
|
||||||
|
#include "mcu_periph/sys_time.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* On tiny (and booz) the ppm counter is running at the same speed as
|
* On tiny (and booz) the ppm counter is running at the same speed as
|
||||||
* the systic counter. There is no reason for this to be true.
|
* the systic counter. There is no reason for this to be true.
|
||||||
|
|||||||
@@ -29,6 +29,8 @@
|
|||||||
#ifndef PPM_ARCH_H
|
#ifndef PPM_ARCH_H
|
||||||
#define PPM_ARCH_H
|
#define PPM_ARCH_H
|
||||||
|
|
||||||
|
#include "mcu_periph/sys_time.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* On tiny (and booz) the ppm counter is running at the same speed as
|
* On tiny (and booz) the ppm counter is running at the same speed as
|
||||||
* the systic counter. There is no reason for this to be true.
|
* the systic counter. There is no reason for this to be true.
|
||||||
|
|||||||
@@ -142,7 +142,7 @@
|
|||||||
#define PWM1_PINSEL_BIT 14
|
#define PWM1_PINSEL_BIT 14
|
||||||
|
|
||||||
|
|
||||||
#define BOARD_HAS_BARO
|
#define BOARD_HAS_BARO 1
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Modem
|
* Modem
|
||||||
|
|||||||
@@ -37,6 +37,6 @@
|
|||||||
#define BOARD_ADC_CHANNEL_3 ADC_Channel_0
|
#define BOARD_ADC_CHANNEL_3 ADC_Channel_0
|
||||||
#define BOARD_ADC_CHANNEL_4 ADC_Channel_15
|
#define BOARD_ADC_CHANNEL_4 ADC_Channel_15
|
||||||
|
|
||||||
#define BOARD_HAS_BARO
|
#define BOARD_HAS_BARO 1
|
||||||
|
|
||||||
#endif /* CONFIG_LISA_L_1_0_H */
|
#endif /* CONFIG_LISA_L_1_0_H */
|
||||||
|
|||||||
@@ -54,7 +54,7 @@
|
|||||||
#define BOARD_ADC_CHANNEL_3 ADC_Channel_14
|
#define BOARD_ADC_CHANNEL_3 ADC_Channel_14
|
||||||
#define BOARD_ADC_CHANNEL_4 ADC_Channel_11
|
#define BOARD_ADC_CHANNEL_4 ADC_Channel_11
|
||||||
|
|
||||||
#define BOARD_HAS_BARO
|
#define BOARD_HAS_BARO 1
|
||||||
|
|
||||||
#define USE_OPENCM3 1
|
#define USE_OPENCM3 1
|
||||||
|
|
||||||
|
|||||||
@@ -76,6 +76,6 @@
|
|||||||
#define PWM1_PINSEL_VAL 0x02
|
#define PWM1_PINSEL_VAL 0x02
|
||||||
#define PWM1_PINSEL_BIT 14
|
#define PWM1_PINSEL_BIT 14
|
||||||
|
|
||||||
#define BOARD_HAS_BARO
|
#define BOARD_HAS_BARO 1
|
||||||
|
|
||||||
#endif /* CONFIG_NAVGO_V1_0_H */
|
#endif /* CONFIG_NAVGO_V1_0_H */
|
||||||
|
|||||||
@@ -99,6 +99,6 @@
|
|||||||
#define SPI1_DRDY_EINT 0
|
#define SPI1_DRDY_EINT 0
|
||||||
#define SPI1_DRDY_VIC_IT VIC_EINT0
|
#define SPI1_DRDY_VIC_IT VIC_EINT0
|
||||||
|
|
||||||
#define BOARD_HAS_BARO
|
#define BOARD_HAS_BARO 1
|
||||||
|
|
||||||
#endif /* CONFIG_UMARIM_V1_0_H */
|
#endif /* CONFIG_UMARIM_V1_0_H */
|
||||||
|
|||||||
@@ -245,7 +245,9 @@ extern uint8_t telemetry_mode_Ap_DefaultChannel;
|
|||||||
#define PERIODIC_SEND_SCP_STATUS(_trans, _dev) {}
|
#define PERIODIC_SEND_SCP_STATUS(_trans, _dev) {}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef BOARD_HAS_BARO
|
//FIXME: we need a better switch here...
|
||||||
|
#if BOARD_HAS_BARO && USE_BARO_AS_ALTIMETER
|
||||||
|
#include "subsystems/sensors/baro.h"
|
||||||
#define PERIODIC_SEND_BARO_RAW(_trans, _dev) { \
|
#define PERIODIC_SEND_BARO_RAW(_trans, _dev) { \
|
||||||
DOWNLINK_SEND_BARO_RAW(_trans, _dev, \
|
DOWNLINK_SEND_BARO_RAW(_trans, _dev, \
|
||||||
&baro.absolute, \
|
&baro.absolute, \
|
||||||
|
|||||||
@@ -69,7 +69,7 @@
|
|||||||
#include "subsystems/datalink/datalink.h"
|
#include "subsystems/datalink/datalink.h"
|
||||||
#include "subsystems/settings.h"
|
#include "subsystems/settings.h"
|
||||||
#include "subsystems/datalink/xbee.h"
|
#include "subsystems/datalink/xbee.h"
|
||||||
#include "ap_downlink.h"
|
#include "firmwares/fixedwing/ap_downlink.h"
|
||||||
|
|
||||||
// modules & settings
|
// modules & settings
|
||||||
#include "generated/modules.h"
|
#include "generated/modules.h"
|
||||||
|
|||||||
@@ -169,7 +169,7 @@
|
|||||||
} \
|
} \
|
||||||
}
|
}
|
||||||
#elif defined IMU_B2_MAG_TYPE && IMU_B2_MAG_TYPE == IMU_B2_MAG_HMC5843
|
#elif defined IMU_B2_MAG_TYPE && IMU_B2_MAG_TYPE == IMU_B2_MAG_HMC5843
|
||||||
include "peripherals/hmc5843.h"
|
#include "peripherals/hmc5843.h"
|
||||||
#define foo_handler() {}
|
#define foo_handler() {}
|
||||||
#define ImuMagEvent(_mag_handler) { \
|
#define ImuMagEvent(_mag_handler) { \
|
||||||
MagEvent(foo_handler); \
|
MagEvent(foo_handler); \
|
||||||
|
|||||||
Reference in New Issue
Block a user