Hi felix,
Thanks to look at my bug....
I test with 4 targets:
Lisa/L 1.0 without alone (no GPS, no IMU.....) just the Xbee
Lisa/L 1.0 full ready to fly (GPS,IMU,Xbee, Rx)
Lisa/M 1.0 full ready to fly (GPS,IMU,Xbee, Rx)
booz ready to fly (GPS,IMU,Xbee, Rx)
On my side I work on a lab PC, actualy in paparazzi V4.0.1... it smell
good.
I will verifiy evrything on 4.0.1.... and make the update step by step to
try to find when the bug appear, I will send you his birthday.....
Last time I play with GIT with limited updated, it was not complete
succesfull.... I will win to GIT!!!
Yesterday I look in source code... batcheker.c.......... I can not see
anything.
My feeling is a time schedule problem, I suppose we "forgot" to restart
the ADC processing, the ADC value stay the same evrytime after the first
read....
Today it is only a idea, a feeling......
many thaks,
Eric
Le 18/12/2012 13:04, Felix Ruess a écrit :
Hi Eric,
it works on my Lisa/L 1.0 (no IMU connected at the moment).
I tested it on the Lisa/M 1.0 as well and it indeed doesn't work
correctly, and it seems that there is some problem with proper adc setup if
other peripherals are used as well.
It works when adding adc_init(); electrical_init(); to the end of
main_init()...
The test_adc target works fine.
Couldn't find the actual problem yet... Stephen, Esden, any ideas/time
to look into this?
Created an issue for it:
https://github.com/paparazzi/paparazzi/issues/339
Cheers, Felix
On Mon, Dec 17, 2012 at 12:35 PM, Eric BAHIER <address@hidden>wrote:
Hi,
I try to kill my bug of BAT value on GCS.... it stil alive.....
I have 2 problems,
To have a good value (8V) I need to modify the adc value.....with
the documented function
<section name="BAT">
...
<define name="VOLTAGE_ADC_A" value="0.011"/>
<define name="VOLTAGE_ADC_B" value="0.635"/>
<define name="VoltageOfAdc(adc)" value ="(VOLTAGE_ADC_A * adc +
VOLTAGE_ADC_B)"/>
</section>
With this my first mistake is solve (or work around.... perhaps it is a
visible part of th iceberg....)
My real bug (I can not find any solution or work arround)
The BAT value is correctly read at power up, GCS give the good
infomation (if I use VoltageOfAdc...), Message windows give also the good
value.
If the BAT value change (LAB power supply can do it easly), the GCS an
Message value still th power up value... In Message windows the message is
updated, but with the power-up value....
This morning I have take My LISA/M, I have used the standard
fraser.....xml, I have juste change the IMU to my version, and comment the
prog mode to use the standard jtag interface.
This mornig I have updated my config (git pull, make clean, make) My
paparazzi version v4.9_devel-337-g34b46d2-dirty.
Anyone I have any idea where I have make the mistake......
Many thanks,
Eric
--
************************************
Lez Concept EURL
Eric BAHIER
15 chemin neuf
34 980 Montferrier sur LEZ
France
Tel : 33 4 67 59 92 53
Fax : 33 9 59 15 92 53
************************************
_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
_______________________________________________
Paparazzi-devel mailing
address@hidden://lists.nongnu.org/mailman/listinfo/paparazzi-devel
--
************************************
Lez Concept EURL
Eric BAHIER
15 chemin neuf
34 980 Montferrier sur LEZ
France
Tel : 33 4 67 59 92 53
Fax : 33 9 59 15 92 53
************************************
_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel