updated DH and encoder values also outputs debug data