-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSpeedMapping.cpp
More file actions
123 lines (122 loc) · 2.41 KB
/
Copy pathSpeedMapping.cpp
File metadata and controls
123 lines (122 loc) · 2.41 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
#include "SpeedMapping.h"
// Speed Mapping
// This consists of byte4 byte5 byte6 byte7 of the serial command, followed by the mapped speed in mph
const float speedTable[117][5] = {
{2,0,0,221,0},
{2,0,161,16,0.5},
{2,0,195,201,0.6},
{2,0,230,186,0.7},
{2,1,8,144,0.8},
{2,1,42,116,0.9},
{2,1,76,105,1},
{2,1,111,188,1.1},
{2,1,145,33,1.2},
{2,1,179,197,1.3},
{2,1,213,216,1.4},
{2,1,248,18,1.5},
{2,2,26,156,1.6},
{2,2,60,188,1.7},
{2,2,94,101,1.8},
{2,2,129,79,1.9},
{2,2,163,171,2},
{2,2,197,182,2.1},
{2,2,231,82,2.2},
{2,3,10,43,2.3},
{2,3,44,11,2.4},
{2,3,78,210,2.5},
{2,3,112,8,2.6},
{2,3,147,154,2.7},
{2,3,181,186,2.8},
{2,3,215,99,2.9},
{2,3,249,250,3},
{2,4,28,96,3.1},
{2,4,62,132,3.2},
{2,4,96,229,3.3},
{2,4,130,70,3.4},
{2,4,165,87,3.5},
{2,4,199,142,3.6},
{2,4,233,23,3.7},
{2,5,11,64,3.8},
{2,5,46,51,3.9},
{2,5,80,212,4},
{2,5,114,48,4.1},
{2,5,148,87,4.2},
{2,5,183,130,4.3},
{2,5,217,38,4.4},
{2,5,251,194,4.5},
{2,6,29,136,4.6},
{2,6,64,186,4.7},
{2,6,98,94,4.8},
{2,6,132,57,4.9},
{2,6,166,221,5},
{2,6,200,121,5.1},
{2,6,235,172,5.2},
{2,7,13,63,5.3},
{2,7,47,219,5.4},
{2,7,81,60,5.5},
{2,7,116,79,5.6},
{2,7,150,236,5.7},
{2,7,184,117,5.8},
{2,7,218,172,5.9},
{2,7,253,189,6},
{2,8,31,135,6.1},
{2,8,65,230,6.2},
{2,8,99,2,6.3},
{2,8,134,54,6.4},
{2,8,168,175,6.5},
{2,8,202,118,6.6},
{2,8,236,86,6.7},
{2,9,15,48,6.8},
{2,9,49,234,6.9},
{2,9,83,51,7},
{2,9,117,19,7.1},
{2,9,152,158,7.2},
{2,9,186,122,7.3},
{2,9,220,103,7.4},
{2,9,254,131,7.5},
{2,10,33,132,7.6},
{2,10,67,93,7.7},
{2,10,101,125,7.8},
{2,10,135,222,7.9},
{2,10,170,20,8},
{2,10,204,9,8.1},
{2,10,238,237,8.2},
{2,11,16,132,8.3},
{2,11,51,81,8.4},
{2,11,85,76,8.5},
{2,11,119,168,8.6},
{2,11,153,118,8.7},
{2,11,188,5,8.8},
{2,11,222,220,8.9},
{2,12,0,105,9},
{2,12,34,141,9.1},
{2,12,69,161,9.2},
{2,12,103,69,9.3},
{2,12,137,155,9.4},
{2,12,171,127,9.5},
{2,12,206,49,9.6},
{2,12,240,235,9.7},
{2,13,18,188,9.8},
{2,13,52,156,9.9},
{2,13,87,116,10},
{2,13,121,237,10.1},
{2,13,155,78,10.2},
{2,13,189,110,10.3},
{2,13,224,92,10.4},
{2,14,2,210,10.5},
{2,14,36,242,10.6},
{2,14,70,43,10.7},
{2,14,105,131,10.8},
{2,14,139,32,10.9},
{2,14,173,0,11},
{2,14,207,217,11.1},
{2,14,242,80,11.2},
{2,15,20,195,11.3},
{2,15,54,39,11.4},
{2,15,88,131,11.5},
{2,15,123,86,11.6},
{2,15,157,49,11.7},
{2,15,191,213,11.8},
{2,15,225,180,11.9},
{2,16,4,119,12}
};