Say if your Pokemon had the ability rock head and used a move such as outrage or thrash. Would you still get confused after you used that move?
Unfourtunately, you would still become confused. Rock Head only prevents recoil damage from moves like Double Edge and Take Down. If you want an ability that prevents Confusion from Outrage and Thrash, then get a Pokemon that has the ability Own Tempo. That way you can deal maximum damage without getting confused.
Hope this helped =)
Rock head prevents recoil froms like double edge and wild charge that do damage to the user.
It does not prevent confusion.