Project VAG: Using Arduino Due for current control

What if you use a fraction of the rectified primary current signal?
Otherwise you have to calculate and add a synchronized sine wave for the output signal.