modified hubo-loop to set LEB to -1 and read LEB from encoder