Could you explain what you mean? My understanding was that Attitude indicators solved this problem using a gyroscope a long time ago. Maybe this falls into what you meant by an "outside reference", but it seems to me autopilots would clearly take these measurements into account.