paparazzi-commits
[Top][All Lists]
Advanced

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

[paparazzi-commits] [5847] analog airspeed


From: Christophe De Wagter
Subject: [paparazzi-commits] [5847] analog airspeed
Date: Fri, 10 Sep 2010 10:31:21 +0000

Revision: 5847
          http://svn.sv.gnu.org/viewvc/?view=rev&root=paparazzi&revision=5847
Author:   dewagter
Date:     2010-09-10 10:31:20 +0000 (Fri, 10 Sep 2010)
Log Message:
-----------
analog airspeed

Added Paths:
-----------
    
paparazzi3/trunk/conf/autopilot/subsystems/fixedwing/airspeed_analog.makefile

Added: 
paparazzi3/trunk/conf/autopilot/subsystems/fixedwing/airspeed_analog.makefile
===================================================================
--- 
paparazzi3/trunk/conf/autopilot/subsystems/fixedwing/airspeed_analog.makefile   
                            (rev 0)
+++ 
paparazzi3/trunk/conf/autopilot/subsystems/fixedwing/airspeed_analog.makefile   
    2010-09-10 10:31:20 UTC (rev 5847)
@@ -0,0 +1,21 @@
+# analog pitotube on ADC
+
+#  <section name="adc" prefix="ADC_CHANNEL_">
+#    <define name="AIRSPEED" value="ADC_5"/>
+#    <define name="AIRSPEED_NB_SAMPLES" value="16"/> 
+#  </section>
+
+#  <section name="AIRSPEED" prefix="AIRSPEED_">
+#    <define name="BIAS" value="(168.0f)"/>
+#    <define name="QUADRATIC_SCALE" value="1.2588f"/>
+#  </section>
+
+ifdef USE_AIRSPEED
+       $(TARGET).CFLAGS += -DUSE_AIRSPEED 
-DADC_CHANNEL_AIRSPEED_NB_SAMPLES=$(AIRSPEED_NB_SAMPLES)
+        $(TARGET).CFLAGS += -DADC_CHANNEL_AIRSPEED=$(USE_AIRSPEED) 
-DUSE_$(USE_AIRSPEED)
+       $(TARGET).srcs += airspeed.c
+else
+       ifdef MEASURE_AIRSPEED
+               $(TARGET).CFLAGS += -DMEASURE_AIRSPEED -DAGR_CLIMB 
+       endif
+endif




reply via email to

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