It is thought the simulator was used to train air cadets in World War II
A flight simulator thought to be 50 years old has been discovered in a hut due to be demolished to make way for Edinburgh's tram system.
Officials from Transport Initiatives Edinburgh (TIE) found the machine after buying the land in the Saughton area of the city from the Air Training Corps.
The simulator is believed to have been used to train cadets for battle during World War II.
It will now be moved to the Montrose Air Station Heritage Centre.
John Monk, from TIE, the council-funded body responsible for the new tram system, said they had no idea the simulator was in the hut when they acquired the land.
He said: "When we discovered the thing inside we contacted the cadets to find out what it was and what we should do with it."