[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[paparazzi-commits] [5016] Add AMS5812 sensor support to CSC main
From: |
Allen Ibara |
Subject: |
[paparazzi-commits] [5016] Add AMS5812 sensor support to CSC main |
Date: |
Tue, 06 Jul 2010 18:06:35 +0000 |
Revision: 5016
http://svn.sv.gnu.org/viewvc/?view=rev&root=paparazzi&revision=5016
Author: aibara
Date: 2010-07-06 18:06:34 +0000 (Tue, 06 Jul 2010)
Log Message:
-----------
Add AMS5812 sensor support to CSC main
Modified Paths:
--------------
paparazzi3/trunk/sw/airborne/csc/mercury_csc_main.c
Modified: paparazzi3/trunk/sw/airborne/csc/mercury_csc_main.c
===================================================================
--- paparazzi3/trunk/sw/airborne/csc/mercury_csc_main.c 2010-07-06 18:05:13 UTC
(rev 5015)
+++ paparazzi3/trunk/sw/airborne/csc/mercury_csc_main.c 2010-07-06 18:06:34 UTC
(rev 5016)
@@ -43,6 +43,7 @@
#include "airspeed.h"
#include "baro_ets.h"
#include "airspeed_ets.h"
+#include "ams5812.h"
#include "interrupt_hw.h"
#include "uart.h"
@@ -51,6 +52,7 @@
#include "downlink.h"
#include "pwm_input.h"
#include "csc_airspeed.h"
+#include "csc_baro.h"
#include "csc_adc.h"
#include "csc_rc_spektrum.h"
@@ -124,6 +126,12 @@
#ifdef USE_BARO_ETS
baro_ets_init();
#endif
+#ifdef USE_AMS5812
+ csc_ams5812_init();
+#endif
+#ifdef USE_BARO_SCP
+ baro_scp_init();
+#endif
int_enable();
}
@@ -171,11 +179,19 @@
#ifdef USE_AIRSPEED
csc_airspeed_periodic();
#endif
+#ifdef USE_AMS5812
+ csc_ams5812_periodic();
+ csc_ap_link_send_pressure(ams5812_pressure[0], ams5812_pressure[1]);
+#endif
}
#ifdef USE_AIRSPEED
airspeed_update();
#endif
+#ifdef USE_BARO_SCP
+ baro_scp_periodic();
+ csc_ap_link_send_baro(baro_scp_pressure, baro_scp_temperature,
baro_scp_status);
+#endif
}
static void csc_main_event( void ) {
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [paparazzi-commits] [5016] Add AMS5812 sensor support to CSC main,
Allen Ibara <=