need help with PowerMeterSum

This forum is dedicated to software development related to MultiWii.
It is not the right place to submit a setup problem.
Software download
Post Reply
JohnyGab
Posts: 144
Joined: Sat Oct 29, 2011 4:41 am

need help with PowerMeterSum

Post by JohnyGab »

I'm integrating current estimation in the Rushduino OSD
I was thinking that PowerMeterSum was representing a mAh estimation based on usage of motors and a coeficient calibrated after a flight ( consumed mAH, coef and estimated mAh )

But now, as i understand, its not that at all. the value go way too fast to represent mAH.

Anybody can explain me how to make it represent mAh....or...just tell me " hey stupid, its simple...blablabla"

thanks

User avatar
Hamburger
Posts: 2578
Joined: Tue Mar 01, 2011 2:14 pm
Location: air
Contact:

Re: need help with PowerMeterSum

Post by Hamburger »

yes, PowerMeterSum does represent mAh.
cannot help without more info:
hard or soft powermeter?
setup as described in config.h?

When Alex had to move code around, an error got introduced into powermeter handling. I did correct it some time ago.

JohnyGab
Posts: 144
Joined: Sat Oct 29, 2011 4:41 am

Re: need help with PowerMeterSum

Post by JohnyGab »

Soft, all by default, quadX
I just arm motor, and value climb at about 200count by second.(gradualy)

User avatar
Hamburger
Posts: 2578
Joined: Tue Mar 01, 2011 2:14 pm
Location: air
Contact:

Re: need help with PowerMeterSum

Post by Hamburger »

when that happens, is voltage reading working at the same time? If not, that is prime cause.
Defaults? So did you do the configuration steps I described in config.h?

JohnyGab
Posts: 144
Joined: Sat Oct 29, 2011 4:41 am

Re: need help with PowerMeterSum

Post by JohnyGab »

I'm not using voltage monitoring, Should I ?

User avatar
Hamburger
Posts: 2578
Joined: Tue Mar 01, 2011 2:14 pm
Location: air
Contact:

Re: need help with PowerMeterSum

Post by Hamburger »

JohnyGab wrote:I'm not using voltage monitoring, Should I ?

yes, for soft powermeter you must have voltage reading setup and working correctly.
Quoting from config.h:
/* 1 - soft: - (good results +-5% for plush and mystery ESCs @ 2S and 3S, not good with SuperSimple ESC */
/* 00. relies on your combo of battery type (Voltage, cpacity), ESC, ESC settings, motors, props and multiwii cycle time */
/* 01. set POWERMETER soft. Uses PLEVELSCALE = 50, PLEVELDIV = PLEVELDIVSOFT = 5000 */
/* 0. output is a value that linearily scales to power (mAh) */
/* 1. get voltage reading right first */
/* 2. start with freshly charged battery */
/* 3. go fly your typical flight (routine and duration) */
/* 4. at end connect to GUI or LCD and read the power value; write it down (example 4711)*/
/* 5. charge battery, write down amount of energy needed (example 722 mAh) */
/* 6. compute alarm value for desired power threshold (example 750 mAh : alarm = 4711 / 722 * 750) */
/* 7. set alarm value in GUI or LCD */
/* 8. enjoy your new battery alarm - possibly repeat steps 2 .. 7 */
/* 9. if you want the numbers to represent your mAh value, you must change PLEVELDIV */


Please, as this obviously is not clear enough - what should we write in the description instead of what is there under 1. ?

JohnyGab
Posts: 144
Joined: Sat Oct 29, 2011 4:41 am

Re: need help with PowerMeterSum

Post by JohnyGab »

Lol, I love the way you turned your question to make me feel bad :P
I know, I should read more ;)

Its a problem, because voltage in my setup is pluged and processed by the OSD, not the mutlwii.
I will put the voltage on the Flight controller side, and share it via serial link..and try again

User avatar
Hamburger
Posts: 2578
Joined: Tue Mar 01, 2011 2:14 pm
Location: air
Contact:

Re: need help with PowerMeterSum

Post by Hamburger »

Actually it was meant as an honest question. I know I am not good at writing documentation.

User avatar
Hamburger
Posts: 2578
Joined: Tue Mar 01, 2011 2:14 pm
Location: air
Contact:

Re: need help with PowerMeterSum

Post by Hamburger »

...but then I did not expect you to not read the documentation :)
Why do you not run two voltage reading inputs, one on each cpu? These could even share the same voltage divider.

Post Reply