|
From: | Chris |
Subject: | Re: [Paparazzi-devel] battery energy consumed too fast in simulation. |
Date: | Mon, 13 Jun 2016 09:03:20 +0300 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 |
Hi Gautier
No i don't mind about those parameters, what i found is that the energy reading is too high for the current set by the <define name="MILLIAMP_AT_FULL_THROTTLE" value="40000"/> ie. the module adds the mah too fast and i had to alter the code like that: #ifndef SITL electrical.energy += ((float)electrical.current) / 3600.0f / ELECTRICAL_PERIODIC_FREQ; #else electrical.energy += ((float)electrical.current) / 3600.0f / 60; // for the simulator only #endif for 5 minutes at 8.5A the energy consumed was calculated at 4Ah ! Chris On 06/12/2016 11:37 PM, Gautier Hattenberger wrote: Hi, |
[Prev in Thread] | Current Thread | [Next in Thread] |