In Avengers: Endgame
Thanos and his spaceship jump into the future and fight the Avengers.
Towards the end of the battle the ship's cannons rotate upwards and begin firing at the approaching
This was a direct contradiction of the order Thanos himself gave when he commanded the ship to fire at the ground, regardless of whether he was hitting his own troops or not.
Clearly someone on board the ship had the authority to ignore the order and decide to fire somewhere else instead.
Who was it?
Presumably some information exists in the MCU about who is in charge of the ship when Thanos isn't on board.