Electrohydraulic controller