Record waypoint, GPS path and yaw

And it automatically stores .tlog files.
So if you tell ardupilot which mavlink messages you want and the tine interval at which you want them, it will do exactly everything you want