Pivotal sensor upgrades will be made to both Royal Navy aircraft carriers.