Changes to aircraft state class in signed distance element function. Handling difference in quaternion.