added yaw detection. simplified pitch and yaw. reduce signals sent to arduino