Rev 2 | Rev 5 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 2 | Rev 4 | ||
|---|---|---|---|
| Line 7... | Line 7... | ||
| 7 | 7 | ||
| 8 | unsigned constexpr INTERP_SCALE = 256; |
8 | unsigned constexpr INTERP_SCALE = 256; |
| 9 | 9 | ||
| 10 | unsigned constexpr MAX_TIMING_POINTS = 8; |
10 | unsigned constexpr MAX_TIMING_POINTS = 8; |
| 11 | unsigned constexpr MAX_VACUUM_POINTS = 8; |
11 | unsigned constexpr MAX_VACUUM_POINTS = 8; |
| 12 | unsigned constexpr TimingScale = TIMING_SCALE; |
12 | int constexpr TimingScale = TIMING_SCALE; |
| 13 | 13 | ||
| 14 | int16_t rpmMap[MAX_TIMING_POINTS] = {400, 750, 1000, 1500, 2500, 3500, 4500, 6000}; |
14 | int16_t rpmMap[MAX_TIMING_POINTS] = {400, 750, 1000, 1500, 2500, 3500, 4500, 6000}; |
| 15 | int16_t vacuumMap[MAX_VACUUM_POINTS] = {0, 166, 225, 300, 700, (int16_t)-1,(int16_t) -1, (int16_t)-1}; |
15 | int16_t vacuumMap[MAX_VACUUM_POINTS] = {0, 166, 225, 300, 700, (int16_t)-1,(int16_t) -1, (int16_t)-1}; |
| 16 | uint8_t mapping[MAX_VACUUM_POINTS][MAX_TIMING_POINTS] = { |
16 | uint8_t mapping[MAX_VACUUM_POINTS][MAX_TIMING_POINTS] = { |
| 17 | /* Table in degrees. */ |
17 | /* Table in degrees. */ |