I think that biobio asks for an algorithm that takes a setpoint and an actual position value ("now position") and has two outputs, one to move forwards and one to move backwards. The "three position output" probably means that there are three states: DO1 high or DO2 high or both low.
Is that what you intended biobio?