Major AI and IT upgrades have been made to the Royal Navy flagship to make sure she “succeeds in her mission”.