Walter, Robert, active 1778-1789, Captain