Contact a criminal defense attorney well before you are scheduled to appear in court. It is very common for these types of cases to be disposed of without a conviction. You are much more likely to obtain a favorable result if you have an attorney representing you.
As an aside, you should not be so specific in your post. These forums are public. While it is unlikely that what you say here will be used against you in some fashion, you never know. Plus, I believe it is likely that you also are talking with others about the events of that day. You should not do so unless the statement are to someone with whom you have a privilege recognized by law - your lawyer, your spouse, your priest, rabbi, etcetera.