27.11.2012 Views

Diseño y construcción de tricicleta solar - GEA - Universidad ...

Diseño y construcción de tricicleta solar - GEA - Universidad ...

Diseño y construcción de tricicleta solar - GEA - Universidad ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

}<br />

ref[0]= ]= ]=0.0; ]=<br />

//referencia lazo <strong>de</strong> tension boost a barra DC<br />

ref[1]= ]= ]=0.0; ]=<br />

//referencia lazo <strong>de</strong> corriente motor<br />

ref[2]= ]= ]=-7.0; ]=<br />

//referencia lazo <strong>de</strong> corriente generador<br />

lazoControl(); (); ();//calcula ();<br />

actuacion con ecuacion recursiva<br />

PWM0=0; //apaga PWM0<br />

led(2); ); );//apaga ); led PWM0<br />

PWM1=0; //apaga PWM1<br />

led(4); ); );//apaga ); led PWM1<br />

interruptor(2); ); );//<strong>de</strong>sconecta );<br />

banco <strong>de</strong> baterias<br />

//fija tension maxima <strong>de</strong> carga <strong>de</strong>l banco <strong>de</strong> ultracapacitores a 38V<br />

if(KMED2*( *( *(float)readChannel(2) *(<br />

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!