ardupilot icon indicating copy to clipboard operation
ardupilot copied to clipboard

CurrTot dropping.

Open AndKe opened this issue 12 years ago • 8 comments

The "total current" (capacity used) is dropping. It makes no sense. I've seen this first on a log from forum while helping somebody out, now my own. I'm pretty sure you have logs with it too, if not, I'll upload ASAP. screenshot from 2014-03-15 12 15 00

AndKe avatar Mar 15 '14 11:03 AndKe

How is your current doing? My Tot is not jumping: currtot I have PX4 running ArduCopter V3.2-dev (beb61235)

Have a look at current and maybe you need a small capacitor on the adc input to smooth the signal out a little.

//Superman

totaltmega avatar Mar 15 '14 15:03 totaltmega

full log at http://flyfoto-nord.no/currtotal.zip

No, my current is very sane, matching throut very well. Anyway - assuming the code is something like: currtotal =+ mAh_spent_since_last_sample
currtotal should not have been able to drop unless calculated consumption since last time of calculation returned a negative mAh_spent_since_last_sample

I did not check the code, - but this must be some bug, the current is reasonable, and always a positive value, yet currtotal suddeltly drops now and then.

AndKe avatar Mar 15 '14 22:03 AndKe

Thanks for the report. This is actually a dataflash download via mavlink issue and it's already been resolved in master.

rmackay9 avatar Mar 16 '14 01:03 rmackay9

I downloaded that .log using Terminal mode in APMPlanner2 (as I understand it, it's still not using mavlink for download) - Please tell me if the same fix is explected to cover that. Thank you.

Hilsen André

On 16 March 2014 02:22, Randy Mackay [email protected] wrote:

Thanks for the report. This is actually a dataflash download via mavlink issue and it's already been resolved in master.

Reply to this email directly or view it on GitHubhttps://github.com/diydrones/ardupilot/issues/905#issuecomment-37744980 .

AndKe avatar Mar 16 '14 08:03 AndKe

Ok, I might have the fix slightly mixed up. There were multiple issues with the FAT file system on the Pixhawk which have all been resolved in master now. I'm 99% sure that this is fixed in master. These jagged graphs will appear all over your logs I think including the logged system time ("TimeMS").

rmackay9 avatar Mar 16 '14 09:03 rmackay9

I think it will be ok if you read the .bin file directly off the SD card. I.e. take the SD card out of the Pixhawk and connect it to your computer.

rmackay9 avatar Mar 16 '14 09:03 rmackay9

You're right. .bin data fine. I thought this was very strange, because I watched these logs often ~2 weeks while fine-tuning current multiplier. and I know I'd remeber it if I saw it then :)

AndKe avatar Mar 16 '14 14:03 AndKe

Ah, great news. So this means it should definitely be fixed in master.

rmackay9 avatar Mar 17 '14 01:03 rmackay9