[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Paparazzi-devel] Current reads always 0
From: |
Chris |
Subject: |
[Paparazzi-devel] Current reads always 0 |
Date: |
Wed, 05 Dec 2012 15:53:57 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/17.0 Thunderbird/17.0 |
I am sure i am doing something wrong but as i tried to simulate a flight
without using the current sensor in the airframe file (i used
MILLIAMPS_AT_FULL_THROTTLE instead) i get no current measurement ie
current in the BAT and ENERGY messages reads always 0.
I verified that the right code is compiled in "electrical.c" and even
assigned a constant value to
the "electrical.current" variable with no luck.
It almost looks like the current value is not passed to the BAT and
ENERGY messages, very strange...
The voltage and throttle indication works fine though so the messages do
get updated.
Here is the relevant airframe file portion:
<section name="BAT">
<define name="MILLIAMP_AT_FULL_THROTTLE" value="69000"/>
<define name="BAT_CAPACITY" value="6000."/>
<define name="FUEL_RESERVE_SECONDS" value="300" unit="s"/>
<define name="CATASTROPHIC_BAT_LEVEL" value="10" unit="V"/>
<define name="CRITIC_BAT_LEVEL" value="12.8" unit="V"/>
<define name="LOW_BAT_LEVEL" value="15" unit="V"/>
<define name="MAX_BAT_LEVEL" value="16.8" unit="V"/>
</section>
What am i doing wrong ?
Chris
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Paparazzi-devel] Current reads always 0,
Chris <=