It’s not a defense to a conviction but it can mitigate the length of the sentence:
No, autism alone is not considered a legal defense against a battery charge; while it can be considered a mitigating factor in some situations, the law generally does not view autism as an excuse for committing a criminal act, as it does not negate the ability to understand the wrongfulness of one's actions in most cases.