Electrohydraulic pump controller