|
From: | Felix Ruess |
Subject: | Re: [Paparazzi-devel] Current reads always 0 |
Date: | Tue, 8 Jan 2013 00:19:22 +0100 |
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
_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
[Prev in Thread] | Current Thread | [Next in Thread] |