[telemetry] remove unnecessary DOWNLINK_DEVICE define

This commit is contained in:
Gautier Hattenberger
2013-07-10 18:26:31 +02:00
parent 09680b07e9
commit 0d25d2d8e1
70 changed files with 0 additions and 210 deletions
-3
View File
@@ -37,9 +37,6 @@
#include "messages.h"
#include "subsystems/datalink/downlink.h"
#ifndef DOWNLINK_DEVICE
#define DOWNLINK_DEVICE DOWNLINK_AP_DEVICE
#endif
#if !defined APOGEE_LOWPASS_FILTER && !defined APOGEE_SMPLRT_DIV
#define APOGEE_LOWPASS_FILTER MPU60X0_DLPF_42HZ
@@ -16,9 +16,6 @@
#endif
#ifdef DEBUG
#ifndef DOWNLINK_DEVICE
#define DOWNLINK_DEVICE DOWNLINK_AP_DEVICE
#endif
#include "mcu_periph/uart.h"
#include "messages.h"
#include "subsystems/datalink/downlink.h"
@@ -17,9 +17,6 @@
#define MS5611_BUFFER_LENGTH 4
#ifdef DEBUG
#ifndef DOWNLINK_DEVICE
#define DOWNLINK_DEVICE DOWNLINK_AP_DEVICE
#endif
#include "mcu_periph/uart.h"
#include "messages.h"
#include "subsystems/datalink/downlink.h"
-3
View File
@@ -40,9 +40,6 @@
#include "messages.h"
#include "subsystems/datalink/downlink.h"
#ifndef DOWNLINK_DEVICE
#define DOWNLINK_DEVICE DOWNLINK_AP_DEVICE
#endif
#ifndef NAVGO_ACCEL_RATE
#define NAVGO_ACCEL_RATE ADXL345_RATE_25HZ
-3
View File
@@ -39,9 +39,6 @@
#include "messages.h"
#include "subsystems/datalink/downlink.h"
#ifndef DOWNLINK_DEVICE
#define DOWNLINK_DEVICE DOWNLINK_AP_DEVICE
#endif
#ifndef UMARIM_ACCEL_RATE
#define UMARIM_ACCEL_RATE ADXL345_RATE_50HZ
@@ -38,9 +38,6 @@
#include "generated/settings.h"
#ifndef DOWNLINK_DEVICE
#define DOWNLINK_DEVICE DOWNLINK_AP_DEVICE
#endif
#include "mcu_periph/uart.h"
#include "subsystems/datalink/downlink.h"
@@ -8,9 +8,6 @@
#include "firmwares/fixedwing/main_fbw.h"
#ifndef DOWNLINK_DEVICE
#define DOWNLINK_DEVICE DOWNLINK_AP_DEVICE
#endif
#define DATALINK_C
#include "subsystems/datalink/datalink.h"
-3
View File
@@ -53,9 +53,6 @@ struct i2c_transaction mppt_trans;
#ifndef DOWNLINK_DEVICE
#define DOWNLINK_DEVICE DOWNLINK_AP_DEVICE
#endif
#include "mcu_periph/uart.h"
#include "messages.h"
#include "subsystems/datalink/downlink.h"
-3
View File
@@ -22,9 +22,6 @@
#include "MPPT.h"
#ifndef DOWNLINK_DEVICE
#define DOWNLINK_DEVICE DOWNLINK_AP_DEVICE
#endif
#include "messages.h"
#include "subsystems/datalink/downlink.h"
-3
View File
@@ -18,9 +18,6 @@ uint16_t adc_generic_val2;
#define ADC_CHANNEL_GENERIC_NB_SAMPLES DEFAULT_AV_NB_SAMPLE
#endif
#ifndef DOWNLINK_DEVICE
#define DOWNLINK_DEVICE DOWNLINK_AP_DEVICE
#endif
#ifdef ADC_CHANNEL_GENERIC1
static struct adc_buf buf_generic1;
@@ -17,9 +17,6 @@
// #include "math/pprz_algebra_float.h"
// For Downlink
#ifndef DOWNLINK_DEVICE
#define DOWNLINK_DEVICE DOWNLINK_AP_DEVICE
#endif
@@ -136,9 +136,6 @@ bool_t ProjectionInsideLimitOfRail;
#include "modules/cartography/cartography.h"
#include "generated/modules.h"
#ifndef DOWNLINK_DEVICE
#define DOWNLINK_DEVICE DOWNLINK_AP_DEVICE
#endif
#include "subsystems/datalink/downlink.h"
#include "mcu_periph/uart.h"
#include "std.h"
@@ -59,9 +59,6 @@ void config_mkk_v2_periodic_read_status(void)
}
}
#ifndef DOWNLINK_DEVICE
#define DOWNLINK_DEVICE DOWNLINK_AP_DEVICE
#endif
#include "mcu_periph/uart.h"
#include "messages.h"
#include "subsystems/datalink/downlink.h"
-3
View File
@@ -62,9 +62,6 @@ void init_sysmon(void) {
#include "mcu_periph/uart.h"
#include "messages.h"
#ifndef DOWNLINK_DEVICE
#define DOWNLINK_DEVICE DOWNLINK_AP_DEVICE
#endif
#include "subsystems/datalink/downlink.h"
void periodic_report_sysmon(void) {
@@ -31,9 +31,6 @@
#include "mcu_periph/pwm_input.h"
#include "mcu_periph/sys_time.h"
#ifndef DOWNLINK_DEVICE
#define DOWNLINK_DEVICE DOWNLINK_AP_DEVICE
#endif
#include "mcu_periph/uart.h"
#include "messages.h"
@@ -33,9 +33,6 @@
#include "mcu_periph/i2c.h"
#include "led.h"
#ifndef DOWNLINK_DEVICE
#define DOWNLINK_DEVICE DOWNLINK_AP_DEVICE
#endif
#include "mcu_periph/uart.h"
#include "messages.h"
#include "subsystems/datalink/downlink.h"
-3
View File
@@ -49,9 +49,6 @@ bool_t dc_probing = FALSE;
uint16_t dc_photo_nr = 0;
uint16_t dc_buffer = 0;
#ifndef DOWNLINK_DEVICE
#define DOWNLINK_DEVICE DOWNLINK_AP_DEVICE
#endif
#include "mcu_periph/uart.h"
#include "messages.h"
#include "subsystems/datalink/downlink.h"
@@ -30,9 +30,6 @@
#include "atmega_i2c_cam_ctrl.h"
#ifndef DOWNLINK_DEVICE
#define DOWNLINK_DEVICE DOWNLINK_AP_DEVICE
#endif
#include "mcu_periph/uart.h"
#include "messages.h"
#include "subsystems/datalink/downlink.h"
-3
View File
@@ -44,9 +44,6 @@ void enose_set_heat(uint8_t no_sensor, uint8_t value) {
}
#ifndef DOWNLINK_DEVICE
#define DOWNLINK_DEVICE DOWNLINK_AP_DEVICE
#endif
#include "mcu_periph/uart.h"
#include "messages.h"
#include "subsystems/datalink/downlink.h"
@@ -326,9 +326,6 @@ static inline void gps_ubx_ucenter_enable_msg(uint8_t class, uint8_t id, uint8_t
// Text Telemetry for Debugging
#ifndef DOWNLINK_DEVICE
#define DOWNLINK_DEVICE DOWNLINK_AP_DEVICE
#endif
#undef GOT_PAYLOAD
#include "subsystems/datalink/downlink.h"
-3
View File
@@ -61,9 +61,6 @@ Receiving:
#ifdef USE_USB_SERIAL
#include "mcu_periph/usb_serial.h"
#endif
#ifndef DOWNLINK_DEVICE
#define DOWNLINK_DEVICE DOWNLINK_AP_DEVICE
#endif
#include "mcu_periph/uart.h"
#include "subsystems/datalink/downlink.h"
#include "ap_subsystems/datalink/downlink.h"
-3
View File
@@ -19,9 +19,6 @@
#include "generated/airframe.h"
#if CHIMU_DOWNLINK_IMMEDIATE
#ifndef DOWNLINK_DEVICE
#define DOWNLINK_DEVICE DOWNLINK_AP_DEVICE
#endif
#include "mcu_periph/uart.h"
#include "messages.h"
#include "subsystems/datalink/downlink.h"
@@ -15,9 +15,6 @@
#include "generated/airframe.h"
#if CHIMU_DOWNLINK_IMMEDIATE
#ifndef DOWNLINK_DEVICE
#define DOWNLINK_DEVICE DOWNLINK_AP_DEVICE
#endif
#include "mcu_periph/uart.h"
#include "messages.h"
#include "subsystems/datalink/downlink.h"
-3
View File
@@ -24,9 +24,6 @@
#include "subsystems/gps.h"
#include "modules/sensors/baro_ets.h"
#ifndef DOWNLINK_DEVICE
#define DOWNLINK_DEVICE DOWNLINK_AP_DEVICE
#endif
#include "mcu_periph/uart.h"
#include "messages.h"
#include "subsystems/datalink/downlink.h"
-3
View File
@@ -29,9 +29,6 @@ int32_t GPS_Data[14];
//da ArduIMU das Read/Write Bit selber anfügt.
#define ArduIMU_SLAVE_ADDR 0x22
#ifndef DOWNLINK_DEVICE
#define DOWNLINK_DEVICE DOWNLINK_AP_DEVICE
#endif
#include "mcu_periph/uart.h"
#include "messages.h"
@@ -49,9 +49,6 @@
#define ArduIMU_SLAVE_ADDR 0x22
#ifdef ARDUIMU_SYNC_SEND
#ifndef DOWNLINK_DEVICE
#define DOWNLINK_DEVICE DOWNLINK_AP_DEVICE
#endif
#include "mcu_periph/uart.h"
#include "messages.h"
#include "subsystems/datalink/downlink.h"
-3
View File
@@ -299,9 +299,6 @@ static inline void parse_ins_msg( void ) {
}
#ifndef DOWNLINK_DEVICE
#define DOWNLINK_DEVICE DOWNLINK_AP_DEVICE
#endif
#include "mcu_periph/uart.h"
#include "messages.h"
#include "subsystems/datalink/downlink.h"
-3
View File
@@ -176,9 +176,6 @@ uint8_t xsens_msg_buf[XSENS_MAX_PAYLOAD];
#define GOT_CHECKSUM 6
// FIXME Debugging Only
#ifndef DOWNLINK_DEVICE
#define DOWNLINK_DEVICE DOWNLINK_AP_DEVICE
#endif
#include "mcu_periph/uart.h"
#include "messages.h"
#include "subsystems/datalink/downlink.h"
-3
View File
@@ -135,9 +135,6 @@ uint8_t xsens_msg_buf[XSENS_MAX_PAYLOAD];
#define GOT_CHECKSUM 6
// FIXME Debugging Only
#ifndef DOWNLINK_DEVICE
#define DOWNLINK_DEVICE DOWNLINK_AP_DEVICE
#endif
#include "mcu_periph/uart.h"
#include "messages.h"
#include "subsystems/datalink/downlink.h"
-3
View File
@@ -31,9 +31,6 @@
#include "messages.h"
#include "subsystems/datalink/downlink.h"
#ifndef DOWNLINK_DEVICE
#define DOWNLINK_DEVICE DOWNLINK_AP_DEVICE
#endif
#ifndef CHARGE_SENS_DEV
#define CHARGE_SENS_DEV i2c0
-3
View File
@@ -41,9 +41,6 @@ float dust_gp2y_density_f;
struct i2c_transaction gp2y_trans;
#ifndef DOWNLINK_DEVICE
#define DOWNLINK_DEVICE DOWNLINK_AP_DEVICE
#endif
#ifndef GP2Y_I2C_DEV
#define GP2Y_I2C_DEV i2c0
@@ -31,9 +31,6 @@
#include "messages.h"
#include "subsystems/datalink/downlink.h"
#ifndef DOWNLINK_DEVICE
#define DOWNLINK_DEVICE DOWNLINK_AP_DEVICE
#endif
#ifndef GEIGER_CNT_DEV
#define GEIGER_CNT_DEV i2c0
-3
View File
@@ -36,9 +36,6 @@
#include "messages.h"
#include "subsystems/datalink/downlink.h"
#ifndef DOWNLINK_DEVICE
#define DOWNLINK_DEVICE DOWNLINK_AP_DEVICE
#endif
#ifndef DPICCO_I2C_DEV
#define DPICCO_I2C_DEV i2c0
-3
View File
@@ -36,9 +36,6 @@
#include "messages.h"
#include "subsystems/datalink/downlink.h"
#ifndef DOWNLINK_DEVICE
#define DOWNLINK_DEVICE DOWNLINK_AP_DEVICE
#endif
#ifndef ADC_CHANNEL_HUMID_HIH
#define ADC_CHANNEL_HUMID_HIH ADC_3
@@ -36,9 +36,6 @@
#include "messages.h"
#include "subsystems/datalink/downlink.h"
#ifndef DOWNLINK_DEVICE
#define DOWNLINK_DEVICE DOWNLINK_AP_DEVICE
#endif
#ifndef HTM_I2C_DEV
#define HTM_I2C_DEV i2c0
-3
View File
@@ -39,9 +39,6 @@
#include "modules/meteo/humid_pcap01_firmware.h"
#endif
#ifndef DOWNLINK_DEVICE
#define DOWNLINK_DEVICE DOWNLINK_AP_DEVICE
#endif
uint8_t pcap01_meas_started;
struct i2c_transaction pcap01_trans;
-3
View File
@@ -15,9 +15,6 @@
#include "led.h"
#ifndef DOWNLINK_DEVICE
#define DOWNLINK_DEVICE DOWNLINK_AP_DEVICE
#endif
uint16_t humidsht, tempsht;
float fhumidsht, ftempsht;
@@ -33,9 +33,6 @@
#include "messages.h"
#include "subsystems/datalink/downlink.h"
#ifndef DOWNLINK_DEVICE
#define DOWNLINK_DEVICE DOWNLINK_AP_DEVICE
#endif
#ifndef SHT_I2C_DEV
#define SHT_I2C_DEV i2c0
-3
View File
@@ -36,9 +36,6 @@
#include "messages.h"
#include "subsystems/datalink/downlink.h"
#ifndef DOWNLINK_DEVICE
#define DOWNLINK_DEVICE DOWNLINK_AP_DEVICE
#endif
#ifndef MLX_I2C_DEV
#define MLX_I2C_DEV i2c0
-3
View File
@@ -44,9 +44,6 @@
#define ADC_CHANNEL_LIGHT_NB_SAMPLES 16
#endif
#ifndef DOWNLINK_DEVICE
#define DOWNLINK_DEVICE DOWNLINK_AP_DEVICE
#endif
uint16_t up[LIGHT_NB], dn[LIGHT_NB];
int32_t light_cnt;
-3
View File
@@ -41,9 +41,6 @@
#define ADC_CHANNEL_LIGHT_NB_SAMPLES 16
#endif
#ifndef DOWNLINK_DEVICE
#define DOWNLINK_DEVICE DOWNLINK_AP_DEVICE
#endif
uint16_t adc_light_temt;
-3
View File
@@ -35,9 +35,6 @@
#include "messages.h"
#include "subsystems/datalink/downlink.h"
#ifndef DOWNLINK_DEVICE
#define DOWNLINK_DEVICE DOWNLINK_AP_DEVICE
#endif
uint8_t lm75_meas_started;
struct i2c_transaction lm75_trans;
@@ -45,9 +45,6 @@
#define ADC_CHANNEL_TEMP_TCOUPLE_NB_SAMPLES 16
#endif
#ifndef DOWNLINK_DEVICE
#define DOWNLINK_DEVICE DOWNLINK_AP_DEVICE
#endif
uint16_t ref[TCOUPLE_NB], val[TCOUPLE_NB];
float fref[TCOUPLE_NB], fval[TCOUPLE_NB];
-3
View File
@@ -36,9 +36,6 @@
float ftmd_temperature;
struct i2c_transaction tmd_trans;
#ifndef DOWNLINK_DEVICE
#define DOWNLINK_DEVICE DOWNLINK_AP_DEVICE
#endif
#ifndef TEMOD_I2C_DEV
#define TEMOD_I2C_DEV i2c0
-3
View File
@@ -35,9 +35,6 @@
#include "messages.h"
#include "subsystems/datalink/downlink.h"
#ifndef DOWNLINK_DEVICE
#define DOWNLINK_DEVICE DOWNLINK_AP_DEVICE
#endif
uint8_t tmp_meas_started;
float ftmp_temperature;
-3
View File
@@ -32,9 +32,6 @@
#include "subsystems/gps.h"
#include "mcu_periph/sys_time.h"
#ifndef DOWNLINK_DEVICE
#define DOWNLINK_DEVICE DOWNLINK_AP_DEVICE
#endif
#include "mcu_periph/uart.h"
#include "messages.h"
-3
View File
@@ -6,9 +6,6 @@
#include <math.h>
#ifndef DOWNLINK_DEVICE
#define DOWNLINK_DEVICE DOWNLINK_AP_DEVICE
#endif
#include "subsystems/datalink/downlink.h"
#include "multi/formation.h"
-3
View File
@@ -5,9 +5,6 @@
#include <math.h>
#ifndef DOWNLINK_DEVICE
#define DOWNLINK_DEVICE DOWNLINK_AP_DEVICE
#endif
#include "subsystems/datalink/downlink.h"
#include "dl_protocol.h"
-3
View File
@@ -33,9 +33,6 @@
#include "generated/flight_plan.h"
#include "messages.h"
#define DOWNLINK_DEVICE DOWNLINK_AP_DEVICE
#include "subsystems/datalink/downlink.h"
float tcas_alt_setpoint;
-3
View File
@@ -48,9 +48,6 @@
// Imu is required
#include "subsystems/imu.h"
#ifndef DOWNLINK_DEVICE
#define DOWNLINK_DEVICE DOWNLINK_AP_DEVICE
#endif
#include "mcu_periph/uart.h"
#include "messages.h"
#include "subsystems/datalink/datalink.h"

Some files were not shown because too many files have changed in this diff Show More