rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
map.h
Go to the documentation of this file.
1/**
2 * @file map.h
3 *
4 * @author Andrey Belomutskiy, (c) 2012-2020
5 */
6
7#pragma once
8
9
11
12void initMapDecoder();
13
14#define KPA_PER_PSI 6.89475728f
15
16#define PSI2KPA(psi) (KPA_PER_PSI * (psi))
17
18#define BAR2KPA(bar) (100 * (bar))
19#define KPA2BAR(kpa) (0.01f * (kpa))
20
21#define STD_ATMOSPHERE 101.32500411216164f
22
23// PSI (relative to atmosphere) to kPa (relative to vacuum)
24#define PSI2KPA_RELATIVE(psi) (STD_ATMOSPHERE + PSI2KPA(psi))
25
26#define INHG2KPA(inhg) ((inhg) * 3.386375f)
27#define KPA2INHG(kpa) ((kpa) / 3.386375f)
28
void initMapDecoder()
Definition map.cpp:66