Writes to UART the coordinates for every displacement. Should be tested.