[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[paparazzi-commits] [4600] draw altitude range
From: |
antoine drouin |
Subject: |
[paparazzi-commits] [4600] draw altitude range |
Date: |
Sun, 28 Feb 2010 23:07:10 +0000 |
Revision: 4600
http://svn.sv.gnu.org/viewvc/?view=rev&root=paparazzi&revision=4600
Author: poine
Date: 2010-02-28 23:07:09 +0000 (Sun, 28 Feb 2010)
Log Message:
-----------
draw altitude range
Modified Paths:
--------------
paparazzi4/trunk/hw/booz/baro_amp.sce
Modified: paparazzi4/trunk/hw/booz/baro_amp.sce
===================================================================
--- paparazzi4/trunk/hw/booz/baro_amp.sce 2010-02-26 08:08:44 UTC (rev
4599)
+++ paparazzi4/trunk/hw/booz/baro_amp.sce 2010-02-28 23:07:09 UTC (rev
4600)
@@ -20,7 +20,7 @@
//
// amplifier parameters
//
-if 1
+if 0
R10 = 27e3;
R5 = 390;
R6 = 12e3;
@@ -30,7 +30,7 @@
R10 = 27e3;
R5 = 390;
R6 = 12e3;
- R20 = 359;
+ R20 = 220;
R21 = 680;
end
@@ -118,8 +118,8 @@
xlabel('Volts');
-k = find(sensor_output < max_sensor_out);
-min_alt = alt_range(k(1))
+k = find(sensor_output > max_sensor_out);
+min_alt = alt_range(k($))
k = find(sensor_output < min_sensor_out);
max_alt = alt_range(k(1))
@@ -130,5 +130,8 @@
offset_gain = R10/(R20+R21)
+subplot(3,1,2);
//xset("color",5)
-//xrect(-1,1,2,2)
+xrect(min_alt, max_sensor_out, max_alt-min_alt, max_sensor_out -
min_sensor_out);
+xstring(5000,3.2,sprintf("altitude range %.0f / %.0f m", min_alt, max_alt));
+
\ No newline at end of file
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [paparazzi-commits] [4600] draw altitude range,
antoine drouin <=