pid working for orientation