microcontroller for electric motor

I am trying to develop a code for an electric motor, a driver for an igbt, 4300w 250v 15amp ~230hrz.
A signal from an encoder will give on timing and turn the gate on. Delay for 10ms which turns the igbt gate on and another signal from encoder will turn it off at proper timing.
Reading through the forum and other books, I found that delay is not the best option for igbt control. I have made a test encoder which is controlling H bridge and lights are flashing as I program Arduino uno board. I am in contact with a couple of encoder companies to see the best options for a proper encoder. In the meantime, I would like to find out the best option for programming Arduino mega board or any other that I will have to use. If more information is needed, I can send it to you. Thankyou.