paparazzi-devel
[Top][All Lists]
Advanced

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

Re: [Paparazzi-devel] Voltage bias in battery level


From: Pascal Brisset
Subject: Re: [Paparazzi-devel] Voltage bias in battery level
Date: Thu, 08 Apr 2010 08:21:56 +0200
User-agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090706)

Hi,

Add something like

       <define name="VoltageOfAdc(adc)" value="(0.018*adc)"/>

in your aiframe file. The default def is in conf/autopilot/tiny_2_1.h:

#define DefaultVoltageOfAdc(adc) (0.01787109375*adc)


--Pascal

Austin Jensen wrote:
All,

I just recently noticed that the battery levels read from the Paparazzi board are changing from board to board (TWOG) on the exact same aircraft with the same fully charged batteries. Is there a variable I can add to the airframe file to compensate for this? I have looked myself without any luck. If not, would a good place to put one be in the main_fbw.c file line 203?

#ifdef ADC
  if (!_10Hz)
fbw_vsupply_decivolt = VoltageOfAdc((10*(vsupply_adc_buf.sum/vsupply_adc_buf.av_nb_sample)));
#endif

Thanks,
Austin
------------------------------------------------------------------
Austin Jensen, Research Engineer
Utah Water Research Laboratory (UWRL)
Utah State University, 8200 Old Main Hill
Logan, UT, 84322-8200, USA
E: address@hidden <mailto:address@hidden>
T: (435)797-3315
------------------------------------------------------------------------

_______________________________________________
Paparazzi-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/paparazzi-devel





reply via email to

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