PIC32 PID and oreintation