our only casualty at that time was the unfortunate culloden which ran aground as captain trowbridge took on the shore based batteries and despite the strenuous efforts of her crew was stuck fast and could not be floated off and so acted as a beacon to warn the incoming ships of the treacherous shallows .