How aircraft know position of landing gears