paparazzi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[paparazzi-commits] [6202] remove some old ets airspeed and baro cruft


From: Felix Ruess
Subject: [paparazzi-commits] [6202] remove some old ets airspeed and baro cruft
Date: Thu, 21 Oct 2010 21:18:45 +0000

Revision: 6202
          http://svn.sv.gnu.org/viewvc/?view=rev&root=paparazzi&revision=6202
Author:   flixr
Date:     2010-10-21 21:18:45 +0000 (Thu, 21 Oct 2010)
Log Message:
-----------
remove some old ets airspeed and baro cruft

Modified Paths:
--------------
    paparazzi3/trunk/sw/airborne/csc/mercury_csc_main.c
    paparazzi3/trunk/sw/airborne/main_ap.c

Modified: paparazzi3/trunk/sw/airborne/csc/mercury_csc_main.c
===================================================================
--- paparazzi3/trunk/sw/airborne/csc/mercury_csc_main.c 2010-10-21 21:18:39 UTC 
(rev 6201)
+++ paparazzi3/trunk/sw/airborne/csc/mercury_csc_main.c 2010-10-21 21:18:45 UTC 
(rev 6202)
@@ -134,12 +134,6 @@
 #ifdef USE_AIRSPEED
        airspeed_init();
 #endif
-#ifdef USE_AIRSPEED_ETS
-       airspeed_ets_init();
-#endif
-#ifdef USE_BARO_ETS
-       baro_ets_init();
-#endif
 #ifdef USE_AMS5812
                csc_ams5812_init();
 #endif
@@ -181,19 +175,10 @@
        csc_adc_periodic();
        
        if ((csc_loops % AIRSPEED_TIMEOUT) == 0) {
-#ifdef USE_AIRSPEED_ETS
-               airspeed_ets_periodic();
-#endif
-#ifdef USE_BARO_ETS
-               baro_ets_read();
-#endif
        } else if ((csc_loops % AIRSPEED_TIMEOUT) == 1) {
 #ifdef USE_BARO_ETS
                baro_ets_periodic();
 #endif
-#ifdef USE_AIRSPEED_ETS
-               airspeed_ets_read();
-#endif
 #ifdef USE_AIRSPEED
                csc_airspeed_periodic();
 #endif

Modified: paparazzi3/trunk/sw/airborne/main_ap.c
===================================================================
--- paparazzi3/trunk/sw/airborne/main_ap.c      2010-10-21 21:18:39 UTC (rev 
6201)
+++ paparazzi3/trunk/sw/airborne/main_ap.c      2010-10-21 21:18:45 UTC (rev 
6202)
@@ -95,10 +95,6 @@
 #include "usb_serial.h"
 #endif
 
-#ifdef USE_AIRSPEED_ETS
-#include "airspeed_ets.h"
-#endif // USE_AIRSPEED_ETS
-
 #ifdef USE_BARO_ETS
 #include "baro_ets.h"
 #endif // USE_BARO_ETS
@@ -501,30 +497,6 @@
 #error "Only 20 and 60 allowed for CONTROL_RATE"
 #endif
 
-#ifdef USE_I2C0
-  // I2C0 scheduler
-  switch (_20Hz) {
-    case 0:
-#ifdef USE_AIRSPEED_ETS
-      airspeed_ets_periodic(); // process airspeed
-#endif // USE_AIRSPEED_ETS
-#ifdef USE_BARO_ETS
-      baro_ets_read(); // initiate next i2c read
-#endif // USE_BARO_ETS
-      break;
-    case 1:
-#ifdef USE_BARO_ETS
-      baro_ets_periodic(); // process altitude
-#endif // USE_BARO_ETS
-#ifdef USE_AIRSPEED_ETS
-      airspeed_ets_read(); // initiate next i2c read
-#endif // USE_AIRSPEED_ETS
-      break;
-    case 2:
-      break;
-  }
-#endif // USE_I2C0
-
 #if CONTROL_RATE == 20
   if (!_20Hz)
 #endif
@@ -534,9 +506,6 @@
       gyro_update();
 #endif
 
-#if defined USE_AIRSPEED || defined MEASURE_AIRSPEED
-      airspeed_update();
-#endif
 #ifdef INFRARED
       ir_update();
       estimator_update_state_infrared();
@@ -581,9 +550,6 @@
 #ifdef GYRO
   gyro_init();
 #endif
-#if defined USE_AIRSPEED || defined MEASURE_AIRSPEED
-  airspeed_init();
-#endif
 #ifdef GPS
   gps_init();
 #endif
@@ -610,14 +576,6 @@
   i2c1_init();
 #endif
 
-#ifdef USE_AIRSPEED_ETS
-  airspeed_ets_init();
-#endif
-
-#ifdef USE_BARO_ETS
-  baro_ets_init();
-#endif
-
 #ifdef USE_ADC_GENERIC
   adc_generic_init();
 #endif




reply via email to

[Prev in Thread] Current Thread [Next in Thread]