PTP to LIN

Changes PTP commands to LIN commands to compute true linear paths.