Fixed problem with excfreq not going through.

Forgot to change the line
dia = (200+30*cos(theta_vout))/Vdc;

it was still set to
dia = duty_CAN/100.0;