This commit is contained in:
pgp 2021-02-05 17:49:40 +01:00
parent 2b865d8e5c
commit 62a02fe8a0

View file

@ -188,12 +188,12 @@ void compte_tour() {
int diff_count = count - old_count;
vRotReel = (60000*diff_count/(pptr*offset)); //vitesse en tours par min (4 pulsations /tour, 2 montantes, 2 descendantes)
old_count = count;
Serial.println("count =");
Serial.println(count);
//Serial.println("count =");
//Serial.println(count);
//Serial.println("chrono_compte_tour=");
//Serial.println(chrono_compte_tour);
Serial.println("vRrotReel=");
Serial.println(vRotReel);
//Serial.println("vRrotReel=");
//Serial.println(vRotReel);
gaz_moteur();// ajustement des gaz en fonction de la vitesse mesurée
sema_compte_tour = false;
}
@ -320,7 +320,7 @@ void sd_init() {
}
now = rtc.now();
char date_format[12] = "MM-DD-hh-mm";
char date_format[] = "DDhhmm";
char *date = now.toString(date_format);
strcat(fichier,date);
char entete[64] = "# YY-MM-DD:hh:mm:ss Vrot en tr/min \n";