My intension is to use gen 3 inverter to firstly boost using the motor coils ( i now understand that this wouldnt work on a gen 2 as you have a single line that is either high or low, whilst the gen 3 has sperate pins for for the high/low igbt's).
Then to use the main dc-dc to buck the hv down to battery voltage (building on work of celeron55), the reason for this in the UK is there is no 3 hase at ahome without spending £1000's and the voltage tends to be slightly higher at 240v therefore 240x 1.41 = 338v circa 3,5v a cell so no use when nearly flat.
(dont wory no hv testing will de done for ages

from the paramters i can see the following are used:
chargemode 0 4 0 0=Off, 3=Boost, 4=Buck
chargecur 0 50 0 Charge current setpoint. Boost mode: charger INPUT current. Buck mode: charger output current
chargekp 0 100 80 Charge controller gain. Lower if you have oscillation, raise if current set point is not met
chargeflt 0 10 8 Charge current filtering. Raise if you have oscillations
chargemax % 0 99 90 Charge mode duty cycle limit. Especially in boost mode this makes sure you don't overvolt you IGBTs if there is no battery connected.
Am i right "udcmax" does absolutely nothing in charge mode?
To my understang i could limit chargemax to limit the output boost voltage however this would lead to a poorer power factor as this would limit the boosting in the lower parts of the sinewave?
looking at the code i can see the following:
else if (MOD_BOOST == opmode || MOD_BUCK == opmode)
{
s32fp chargeCur = Param::Get(Param::chargecur);
s32fp tempDerate = FP_FROMINT(100);
Throttle::TemperatureDerate(Param::Get(Param::tmphs), Param::Get(Param::tmphsmax), tempDerate);
chargeCur = FP_MUL(tempDerate, chargeCur) / 100;
if (chargeCur < chargeCurRamped)
chargeCurRamped = chargeCur;
else
chargeCurRamped = RAMPUP(chargeCurRamped, chargeCur, 1);
PwmGeneration::SetChargeCurrent(chargeCurRamped);
}
This is where the current regulation, occurs and the temperature de-rating, this likes it would be a good placeto add voltage regulation by incerperating it into the throttle part?
Any thoughts and pointers are appreciated ... im trying to get my head around code before proceeding to some (low volatge testing).