-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFuelMap.h
More file actions
30 lines (27 loc) · 1.98 KB
/
FuelMap.h
File metadata and controls
30 lines (27 loc) · 1.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#pragma once
struct FuelMap {
static constexpr int rpmPoints = 18;
static constexpr int loadPoints = 15;
static constexpr double rpmAxis[rpmPoints] = {800, 1300, 1500, 2000, 2500, 2900, 3400, 3600, 3900, 4000, 4200, 4600, 4800, 5000, 5300, 5500, 5880, 6000};
static constexpr double loadAxis[loadPoints] = {10, 15, 30, 45, 50, 60, 65, 70, 75, 80, 85, 90, 95, 100, 110};
static constexpr double pulseWidth[rpmPoints][loadPoints] =
{
{3.0, 3.8, 4.6, 5.4, 6.2, 7.0, 7.8, 8.6, 9.4, 10.2, 11.0, 11.8, 12.6, 13.4, 14.2},
{3.2, 4.0, 4.8, 5.6, 6.4, 7.2, 8.0, 8.8, 9.6, 10.4, 11.2, 12.0, 12.8, 13.6, 14.4},
{3.4, 4.2, 5.0, 5.8, 6.6, 7.4, 8.2, 9.0, 9.8, 10.6, 11.4, 12.2, 13.0, 13.8, 14.6},
{3.6, 4.4, 5.2, 6.0, 6.8, 7.6, 8.4, 9.2, 10.0, 10.8, 11.6, 12.4, 13.2, 14.0, 14.8},
{3.8, 4.6, 5.4, 6.2, 7.0, 7.8, 8.6, 9.4, 10.2, 11.0, 11.8, 12.6, 13.4, 14.2, 15.0},
{4.0, 4.8, 5.6, 6.4, 7.2, 8.0, 8.8, 9.6, 10.4, 11.2, 12.0, 12.8, 13.6, 14.4, 15.2},
{4.2, 5.0, 5.8, 6.6, 7.4, 8.2, 9.0, 9.8, 10.6, 11.4, 12.2, 13.0, 13.8, 14.6, 15.4},
{2.5, 3.2, 3.9, 4.6, 5.3, 6.0, 6.7, 7.4, 8.1, 8.8, 9.5, 10.2, 10.9, 11.6, 12.3},
{2.8, 3.6, 4.4, 5.2, 6.0, 6.8, 7.6, 8.4, 9.2, 10.0, 10.8, 11.6, 12.4, 13.2, 14.0},
{3.0, 3.8, 4.6, 5.4, 6.2, 7.0, 7.8, 8.6, 9.4, 10.2, 11.0, 11.8, 12.6, 13.4, 14.2},
{3.2, 4.0, 4.8, 5.6, 6.4, 7.2, 8.0, 8.8, 9.6, 10.4, 11.2, 12.0, 12.8, 13.6, 14.4},
{3.4, 4.2, 5.0, 5.8, 6.6, 7.4, 8.2, 9.0, 9.8, 10.6, 11.4, 12.2, 13.0, 13.8, 14.6},
{3.6, 4.4, 5.2, 6.0, 6.8, 7.6, 8.4, 9.2, 10.0, 10.8, 11.6, 12.4, 13.8, 14.0, 14.8},
{3.8, 4.6, 5.4, 6.2, 7.0, 7.8, 8.6, 9.4, 10.2, 11.0, 11.8, 12.6, 13.6, 14.2, 15.0},
{4.0, 4.8, 5.6, 6.4, 7.2, 8.0, 8.8, 9.6, 10.4, 11.2, 12.0, 12.8, 13.6, 14.4, 15.2},
{4.2, 5.0, 5.8, 6.6, 7.4, 8.2, 9.0, 9.8, 10.6, 11.4, 12.2, 13.6, 13.8, 14.6, 15.4},
{4.4, 6.2, 6.4, 6.8, 8.0, 8.4, 9.2, 10.0, 10.8, 11.6, 12.4, 13.6, 14.6, 15.4, 15.6}
};
};