Skip to content

Commit

Permalink
Pre Alpha 2, prueba concepto
Browse files Browse the repository at this point in the history
en esta pre alpha el programa puede inyectar / encender en los tiempos
que correspondan, calcula las rpm tambien, es simplemente una prueba de
logica
  • Loading branch information
FDSoftware committed Sep 1, 2017
1 parent 7207e43 commit bacdab8
Show file tree
Hide file tree
Showing 3 changed files with 99 additions and 495 deletions.
8 changes: 8 additions & 0 deletions TMAP.cpp → _OLD/TMAP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,12 @@ float TMAP::MasaAire(){
//calculamos la mase del aire
MA = (mol* R *TempK) / (0.07 * presionf) ; //0.7 * presionf es para pasar de PSI a atm
return MA; //Devolvemos la masa de aire que entra en la admision en litros
}

int TMAP::PMA(){ //Presion multiple admision
//Medimos la presion (no creo que funcione muy bien que digamos XD)
presion = analogRead(pinTMAP[0]);
presion = map(presion,0, 1023, 145,210); //145 = 1,45 psi presion minima, 210 = 2,10 psi presion maxima
presionf = presion / 100;
return presionf;
}
1 change: 1 addition & 0 deletions TMAP.h → _OLD/TMAP.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class TMAP{
public:
TMAP(int pin, int pin2);//constructor de funcion
float MasaAire();
int PMA();
private:
int _pin;
int _pin2;
Expand Down
Loading

0 comments on commit bacdab8

Please sign in to comment.