yeah the incoming CC values you get are skewed. i don't think you can get 0,1,2 with just ADDs and DIVs, the scale is off.
you should write a very simple mapping object yourself, 1min work:
case 0: outlet_o1=0; break;
case 64: outlet_o1=1; break;
case 127: outlet_o1=2; break;
might be overkill but worst case you can try this mapping object:
@lokki @jaffasplaffa you guys know how to maybe get these mapping objects pushed to the library?