Index: trunk/FACT++/src/feedback.cc
===================================================================
--- trunk/FACT++/src/feedback.cc	(revision 13070)
+++ trunk/FACT++/src/feedback.cc	(revision 13071)
@@ -166,4 +166,6 @@
             vec[i+416] = diff;
 
+        avg = 0;
+        num = 0;
         if (fControlType==kCurrents)
         {
@@ -178,9 +180,15 @@
             for (int i=0; i<BIAS::kNumChannels; i++)
             {
-                // 3900 Ohm/n  +  1000 Ohm  +  1100 Ohm
-                const double R = fMap.hv(i).group()==0 ? 3075 : 2880;
+                // 3900 Ohm/n  +  1000 Ohm  +  1150 Ohm
+                const double R = fMap.hv(i).group()==0 ? 3125 : 2930;
                 const double I = double(fCurrentsAvg[i])/fCursorCur - fCalibration[i];
                 vec[i+416] += R * I*conv;
+                if (fCalibration[i]>0)
+                {
+                    avg += vec[i+416];
+                    num++;
+                }
             }
+            avg /= num;
 
             fCurrentsAvg.assign(416, 0);
@@ -194,5 +202,7 @@
             return;
 
-        Info("Sending new absolute offset to biasctrl.");
+        ostringstream msg;
+        msg << setprecision(4) << "Sending new absolute offset (" << diff << "V+" << avg << "V) to biasctrl.";
+        Info(msg);
 
         DimClient::sendCommandNB((char*)"BIAS_CONTROL/SET_GAPD_REFERENCE_OFFSET",
