It is an old piece of code that can be fully deleted.
Basically it was for taking a value off of an analogue input, and using that for the reference voltage to do the digital to analogue conversion with instead of just blindly assuming it was 5v.
Since the voltage regulator on the brain will put out slightly less voltage when hot, it was thought of in a hurry to mabe compensate for that. However we shortly (within hours) realized we were being stupid as the reference voltage would be compared off of the same bad regulator voltage! duh... So it is still in there because... I just havent taken it out.