Compensation for Battery voltage depletion

Post Reply
Paulmann
Posts: 13
Joined: Thu Mar 21, 2013 11:54 pm

Compensation for Battery voltage depletion

Post by Paulmann »

Hi,

when the battery voltage gets lower we have to compensate wither higher throttle.
Wouldnt it be nice to have the same flight / hovering points independent of battery voltage ?

-- the failsave decay with a fixed throttle value would be less battery sensitive.
-- the closed loop gain of PIDs isn t constant . It goes down when battery voltage falls.
-- for altitude hold the battery voltage change is one systematic error source.

I could be a nice feature to compensate.
Maybe to multiply the motor -outputs with a correction factor which is dependant from the VBAT - Measurement.

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

Re: Compensation for Battery voltage depletion

Post by Hamburger »

The third value of the governor feature does that already.
It was originally for helicopters but works for multis as well.

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: Compensation for Battery voltage depletion

Post by copterrichie »

We really need a road map as to what can and can not work in conjunction with each other. I don't have a clue how to go about this this other than user input into some sort of database.

Code: Select all

 /* Governor: attempts to maintain rpm through pitch and voltage changes
     * predictive approach: observe input signals and voltage and guess appropriate corrections.
     * (the throttle curve must leave room for the governor, so 0-50-75-80-80 is ok, 0-50-95-100-100 is _not_ ok.
     * Can be toggled via aux switch.
     */
    //#define GOVERNOR_P 7     // (*) proportional factor. Higher value -> higher throttle increase. Must be >=1; 0 = turn off
    //#define GOVERNOR_D 4     // (*) decay timing. Higher value -> takes longer to return throttle to normal. Must be >=1;
    //#define GOVERNOR_R 10    // (*) voltage impact correction scale in 0.1 units. Higher value -> more compensation for voltage drops. normal is value 10 <=> 1.0; 0 is off

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: Compensation for Battery voltage depletion

Post by copterrichie »

Suggestion, it would be very nice if the third define becomes part of the VBAT section of the config.h file.

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

Re: Compensation for Battery voltage depletion

Post by Hamburger »

Currently the entire governor thing can be switched via auxN

jy0933
Posts: 180
Joined: Wed Jun 27, 2012 4:24 pm

Re: Compensation for Battery voltage depletion

Post by jy0933 »

why not just support i2c esc and use rpm feedback for it.. aka direct rpm control?

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: Compensation for Battery voltage depletion

Post by copterrichie »

jy0933 wrote:why not just support i2c esc and use rpm feedback for it.. aka direct rpm control?


Now that is something I REALLY would love to see happen however, many say the i2c esc are not a good way to go. Wish I had a few to experiment with.

balrog
Posts: 3
Joined: Tue Apr 30, 2013 5:08 pm

Re: Compensation for Battery voltage depletion

Post by balrog »

copterrichie wrote:
jy0933 wrote:why not just support i2c esc and use rpm feedback for it.. aka direct rpm control?


Now that is something I REALLY would love to see happen however, many say the i2c esc are not a good way to go. Wish I had a few to experiment with.


I've been doing that in my tricopter fc, the discussion is at https://github.com/sim-/tgy/issues/6 , I was basically reading the rpm every 4s and slightly adjusting the throttle gain every time. While I'm learning to fly and use no telemetry yet I decided to leave it alone though so I could see when the voltage was low.

The serial protocol I use (dumber than i2c) is not the prettiest but I think within the limitations of a generic solution that will work with every ESC that supports SimonK-firmware it's not terrible. It uses 4 wires instead of three for two-way comms + BEC power like usual.

Post Reply