I think its just about being honest really.
I treat my children with kindness and, most of the time, they repay that in their good behaviour. I try not to yell at them, and take a deep breath before any telling off. When we are all calm I explain to them why things escalated in the way that they did - but of course thats much easier now they are older.
Expectations of them and of yourself have to be realistic. None of us are perfect, and to strive for some idealistic view of the perfect parenting will always result in feelings of failure for both you and them. Be realistic about the things you can change and the things that you cant.
Children need to learn how to balance conflict and how to deal with feelings. Being brought up in surroundings where there are none is no better for them than being brought up in a home where conflict is rife. Its about striking a balance where everyone can feel safe about saying or showing how they feel and given tools to resolve the issues. It will not harm your child to know that adults too have days when they are tired and grumpy unless you then don't redress the balance .
I tell my boys if I have been unfair. They can sometimes do the same thing two days running and get different reactions from me depending on the situation or how I am feeling at the time. Its important to recognise that they are not responsible for your feelings. For instance I will say "mummy is really happy/sad that you did that" but will never say "you made mummy happy/sad by doing that.
Its tough to leave the feelings you have left over from childhood behind. It wont be easy for you to change. But you have to - for their benefit. If they see you having great feelings of guit and anxiety over your parenting skills they will follow your model. Being a good enough parent is all we can ask of ourselves really.
Above all though you have to stop comparing yourself to your parent. You are not them and only you have the power to make sure that you do not treat your children in the same way. This doesn't mean striving for perfectioin, it just means that you need to be able to relax and enjoy your children and for them to enjoy their childhood.
My boys have grown into lovely, kind, smart young men and I take every bit of credit for that. I have worked very hard to ensure that my horrible past does not shape my future or that of my children.
You are strong, and you can be happy. Let the past go and concnetrate on your own family now.