Code: Select all
if (udcnom > 0)
{
s32fp udcdiff = udcfp - udcnom;
s32fp factor = FP_FROMINT(1) + FP_DIV(udcdiff, udcnom);
//increase fweak on voltage above nominal
fweak = FP_MUL(fweak, factor);
//decrease boost on voltage below nominal
boost = FP_DIV(boost, factor);
}So would the equation for the factor be: (UDC measured - UDCnom) /UDCnom ?
No the comment really throws me off, as I would expect the boost to need to increase to keep the resultant effective voltage the same?
From wiki: boost At full throttle an effective voltage of 1700/37813*355=16V is generated. Thus a lower voltage is a lower effective voltage.