Vnom= 230;
f_nom = 50;

Vdc= 340;

clock = 26000;  

f_velocidad = clock/10;
f_triangular = clock/10;
fc_corrientes = 1000;

cte_encoder = 2*pi/500;

time_step = 1/clock;

polos = 4;

limite_direccion = 15/clock;
limite_nyquist = 2/clock;

cte_amplitud = 1/f_nom;
cte_escala = round(sqrt(2) * Vnom / Vdc, 2);
gain_corrientes = 5 * 50/4;