Mechanical gyroscopes are beginning to be replaced by ring-laser or hemispherical-resonator ones, but most ships retain a traditional magnetic compass as a backup—just in case.
Magnetic Compass - National Maritime Historical Society
How the Compass Helped Columbus - Lesson
The Ship's Compass – A History
The History of the Compass - Dalvey
Navigation and Related Instruments in 16th-Century England - Fort Raleigh National Historic Site (U.S. National Park Service)
ship's compass - AbeBooks
History of the compass - Wikipedia
MARINE NAVIGATIONAL COMPASS HISTORY
A History of the Ship's Compass Naval History Magazine - December 2022, Volume 36, Number 6