rusefi-1/firmware/controllers/sensors/tps.h

26 lines
458 B
C
Raw Normal View History

2015-07-10 06:01:56 -07:00
/**
* @file tps.h
* @brief
*
*
* @date Nov 15, 2013
2020-01-13 18:57:43 -08:00
* @author Andrey Belomutskiy, (c) 2012-2020
2015-07-10 06:01:56 -07:00
*/
2020-01-20 22:40:11 -08:00
#pragma once
2015-07-10 06:01:56 -07:00
#include "global.h"
#include "engine_configuration.h"
// Scaled to 1000 counts = 5.0 volts
#define TPS_TS_CONVERSION 200
constexpr inline int convertVoltageTo10bitADC(float voltage) {
return (int) (voltage * TPS_TS_CONVERSION);
}
2019-04-29 22:21:09 -07:00
void grabTPSIsClosed();
void grabTPSIsWideOpen();
2019-04-30 15:46:39 -07:00
void grabPedalIsUp();
void grabPedalIsWideOpen();