moved firmwares/rotorcraft/baro to subsystems/sensors/baro

This commit is contained in:
Antoine Drouin
2010-12-05 18:56:57 +01:00
parent ad17b4b8c5
commit e90467ba86
14 changed files with 24 additions and 29 deletions
+1 -1
View File
@@ -21,7 +21,7 @@
*/
#include "firmwares/rotorcraft/baro.h"
#include "subsystems/sensors/baro.h"
#include "generated/airframe.h"
#include "led.h"
+1 -1
View File
@@ -3,7 +3,7 @@
#include "std.h"
#include "firmwares/rotorcraft/baro.h"
#include "subsystems/sensors/baro.h"
#include "booz/booz2_analog.h"
/* we don't need that on this board */
+4 -5
View File
@@ -29,12 +29,11 @@
#include BOARD_CONFIG
#include "init_hw.h"
#include "interrupt_hw.h"
#include "mcu.h"
#include "sys_time.h"
#include "downlink.h"
#include "firmwares/rotorcraft/baro.h"
#include "subsystems/sensors/baro.h"
static inline void main_init( void );
static inline void main_periodic_task( void );
@@ -57,11 +56,11 @@ int main(void) {
}
static inline void main_init( void ) {
hw_init();
mcu_init();
sys_time_init();
booz2_analog_init();
baro_init();
int_enable();
mcu_int_enable();
}
+2
View File
@@ -93,6 +93,8 @@
#define PWM1_PINSEL_BIT 14
#define BOARD_HAS_BARO
/*
* Modem
*/
+1 -1
View File
@@ -1,5 +1,5 @@
#include "firmwares/rotorcraft/baro.h"
#include "subsystems/sensors/baro.h"
struct Baro baro;
struct BaroBoard baro_board;
+1 -1
View File
@@ -34,7 +34,7 @@
#include "downlink.h"
#include "firmwares/rotorcraft/baro.h"
#include "subsystems/sensors/baro.h"
//#include "my_debug_servo.h"
static inline void main_init( void );
+1
View File
@@ -23,5 +23,6 @@
#define ADC_CHANNEL_VSUPPLY 2
#define DefaultVoltageOfAdc(adc) (0.0059*adc)
#define BOARD_HAS_BARO
#endif /* CONFIG_LISA_V1_0_H */
+1 -1
View File
@@ -1,6 +1,6 @@
#include "firmwares/rotorcraft/baro.h"
#include "subsystems/sensors/baro.h"
struct Baro baro;
@@ -24,7 +24,7 @@
#include "booz2_analog.h"
/* analog_arch includes baro ??? naaaa we don't want double references */
#include "firmwares/rotorcraft/baro.h"
#include "subsystems/sensors/baro.h"
#include "firmwares/rotorcraft/battery.h"
#ifndef USE_EXTRA_ADC
+1 -1
View File
@@ -41,7 +41,7 @@
#include "booz_gps.h"
#include "booz/booz2_analog.h"
#include "firmwares/rotorcraft/baro.h"
#include "subsystems/sensors/baro.h"
#include "firmwares/rotorcraft/battery.h"
+1 -1
View File
@@ -45,7 +45,7 @@
#include "csc_msg_def.h"
#include "csc_protocol.h"
#include "firmwares/rotorcraft/baro.h"
#include "subsystems/sensors/baro.h"
#include "mcu_periph/adc.h"
@@ -26,7 +26,7 @@
#include "lisa/lisa_overo_link.h"
#include "subsystems/imu.h"
#include <booz/booz_gps.h>
#include "firmwares/rotorcraft/baro.h"
#include "subsystems/sensors/baro.h"
#include <string.h>
+1 -1
View File
@@ -25,7 +25,7 @@
#include "subsystems/ins.h"
#include "subsystems/imu.h"
#include "firmwares/rotorcraft/baro.h"
#include "subsystems/sensors/baro.h"
#include "booz_gps.h"
#include "generated/airframe.h"
@@ -23,12 +23,12 @@
/*
*
* Brief: common baro for a rotorcraft firmware
* Brief: common barometric sensor implementation
*
*/
#ifndef ROTORCRAFT_BARO_H
#define ROTORCRAFT_BARO_H
#ifndef SUBSYSTEMS_SENSORS_BARO_H
#define SUBSYSTEMS_SENSORS_BARO_H
#include <std.h>
@@ -37,6 +37,7 @@ enum BaroStatus {
BS_RUNNING
};
/* pressure in which units ? */
struct Baro {
int32_t absolute;
int32_t differential;
@@ -45,20 +46,12 @@ struct Baro {
extern struct Baro baro;
#if 0
#include BOARD_CONFIG
#define BOARD_MODEL_BOOZ 0
#define BOARD_MODEL_LISA_L 1
#if defined BOARD_MODEL && BOARD_MODEL==BOARD_MODEL_BOOZ
#include "boards/booz/baro_board.h"
#elsif defined BOARD_MODEL && BOARD_MODEL==BOARD_MODEL_LISA_L
#include "boards/lisa_l/baro_board.h"
#endif
#else /* 0 */
#if defined BOARD_HAS_BARO
#include "baro_board.h"
#endif /* 0 */
#endif
extern void baro_init(void);
extern void baro_periodic(void);
#endif /* ROTORCRAFT_BARO_H */
#endif /* SUBSYSTEMS_SENSORS_BARO_H */