Advertisement
hidromotic

G06_I

Apr 11th, 2019
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. //G06_I
  2. void CtrlModoMotor(void)
  3. {
  4. unsigned long millis_inicial=0;
  5.  
  6. if(boton==BOTON_MARCHA && modo_motor==MODO_PARADO)
  7. {
  8. modo_motor=MODO_ESTRELLA;
  9. millis_inicial=millis();
  10. }
  11.  
  12. if(modo_motor==MODO_ESTRELLA)
  13. {
  14. if(millis()-millis_inicial>tpo_arranque_ms) modo_motor=MODO_TRIANGULO;
  15. }
  16. if(boton==BOTON_PARADA) modo_motor=MODO_PARADO;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement