How were royal navy ships around 1800 officially supposed to handle losing all commissioned officers in battle?
(My first question here, please bear with me if I don't yet know all the rules.)
As far as I read only commissioned officers were allowed to take command of a ship or "fight it", i.e. take tactical decisions in battle (engaging, disengaging, striking of colours, ...). This would happen in order of commissioned rank, should the captain / first lieutenant / .... die.
So this leaves me wondering, what would have happened in the unfortunate circumstance of a ship losing all of its commissioned officers - i.e. the captain/commander and all of the lieutenants - in battle, being left behind with only warrant and petty officers.
Would the command be taken up by a lowly midshipman in a masters mate rank? Would the (sailing) master take over, through sheer overwhelming expertise? Was this even regulated by the royal navy, or was this a legally ambiguous situation?
Are there documented cases of this ever happening in the royal navy?