[Top][All Lists]

[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 (X11/20090706)


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)


Austin Jensen wrote:

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)));

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

reply via email to

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