only log pilot state if it changes