McCarty, Richard, active 1775-1782, Captain