-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathspeedometer-config.js
129 lines (111 loc) · 5.58 KB
/
speedometer-config.js
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
124
125
126
127
128
129
/** speedometer-config.js ************************************************************** *\
|* ========================= *|
|* Speedometer Configuration - Used to configure position of Speedometer values. *|
|* ========================= *|
|* Main Speedometer Value: [0, 0, 0] - Large, Front, & Center. *|
|* [ 0/1/2:(0 For Main Column, 1 For Bottom Rows, 2+ To Hide), Row Number, Position ] *|
|* Main Column Positions: 4 Values (1-4 From Top to Bottom) *|
|* Bottom Rows Positions: 5 Values Per Row (1-5 From Left to Right) *|
|* Examples: *|
|* [0, 1, 4] = [Main, Column, 4th position (Bottom of the Column)] *|
|* [1, 3, 1] = [Bottom, 3rd Row, First Position (Left Side)] *|
|* [1, 1, 5] = [Bottom, 1st Row, Last Position (Right Side)] *|
|* To Hide a Value = [2, 1, 0] (2 As The First Number) *|
|* To Change Bottom Row Push Command Knob ("Select") *|
|* Note: Only numbers inside [] brackets determine position, order in this list DOES NOT *|
\* ************************************************************************************* */
var spdBottomRows = 4; //Number of Bottom Rows
var spdTbl = {
vehSpeed: [0, 0, 0], //Vehicle Speed
topSpeed: [0, 1, 1], //Top Speed
avgSpeed: [0, 1, 2], //Average Speed
gpsSpeed: [0, 1, 3], //GPS Speed
engSpeed: [0, 1, 4], //Engine Speed
trpTime: [1, 1, 1], //Trip Time
trpIdle: [1, 1, 2], //Idle Time
trpDist: [1, 1, 3], //Trip Distance
fuelLvl: [1, 1, 4], //Fuel Gauge Level
outTemp: [1, 1, 5], //Outside Temperature
gpsHead: [1, 2, 1], //GPS Heading
gpsAlt: [1, 2, 2], //Altitude
gpsAltMM: [1, 2, 3], //Altitude Min/Max
trpFuel: [1, 2, 4], //Trip Fuel Economy
inTemp: [1, 2, 5], //Intake Temperature
gearPos: [1, 3, 1], //Gear Position
gearLvr: [1, 3, 2], //Transmission Lever Position
engTop: [1, 3, 3], //Engine Top Speed
avgFuel: [1, 3, 4], //Average Fuel Economy
coolTemp: [1, 3, 5], //Coolant Temperature
engLoad: [2, 4, 0], //Engine Load
gpsLat: [1, 4, 2], //GPS Latitude
gpsLon: [1, 4, 3], //GPS Longitude
totFuel: [1, 4, 4], //Total Fuel Economy
trpEngIdle: [1, 4, 5], //Engine Idle Time
batSOC: [1, 4, 1], //Battery Charge State (i-stop)
};
/* ************************************************** */
/* Set this to true to use your values below ******** */
/* If this is false the following values are not used */
var overRideSpeed=false;
/* ************************************************** */
/* ****************** Start OverRide Variables ****** */
var SORV = {
// Set the language for the speedometer
// Available EN, ES, DE, PL, SK, TR, FR, IT
language: "EN",
// Used for metric/US english conversion flag (C/F, KPH/MPH, Meter/Feet, L per 100km/MPG)
// Set isMPH: true for MPH, Feet, MPG
// Set isMPH: false for KPH, Meter
isMPH: false,
// Set This to true to start with the Bar Speedometer Mod
// False to use the analog speedometer
barSpeedometerMod: true,
// Set true to enable multicontroller and other mod features in classic mode
// If false then use classic speedometer without Mods
speedMod: true,
// Set to true to start the classic speedometer in analog mode
// False to start in digital mode
startAnalog: true,
// Set it true for the StatusBar Speedometer
// False if you don't want the small speedometer in statusbar
StatusBarSpeedometer: true,
// Set to true for Outside Temperature & Fuel Efficiency in the statusbar
// False for Compass & Altitude
sbTemp: false,
// Set true if you want the original speedometer background image as in version 4.2 or below
// False for no background
// If "true" the opacity above will be ignored
original_background_image: false,
// Set the opacity of black background color for speedometer, to reduce the visibility of custom MZD background images
// Possible values 0.0 (full transparent) until 1.0 (complete black background)
black_background_opacity: 0.0,
// Set unit for fuel efficiency to km/L
// False for L/100km
fuelEffunit_kml: false,
// Set this to true for Fahrenheit
// False for Celsius
tempIsF: false,
// For the Speed Bar false for Current Vehicle Speed
// Set This to true if you want the Colored Bar to measure engine speed
engineSpeedBar: false,
// Set This to true to hide the Speed Bar
// False shows he bar
hideSpeedBar: false,
// Set this to true to enable counter animation on the speed number
// False to disable speed counter animation
// The animation causes the digital number to lag by 1 second
speedAnimation: false,
// Set this to the color of the Analog SpeedoMeter
// Valid Colors are (Capitalized and in quotes): Red, Blue, Green, Yellow, Pink, Orange, Purple, silver
analogColor: "Red",
// Set to the color theme for Bar SpeedoMeter
// Theme will be a number 0-5 (0 is default white)
barTheme: 0,
// Set suffix appended to gauge value
// default is "%" to show available fuel percentage
fuelGaugeValueSuffix: "%",
// Set multiplier to get human readable output fuel value from its internal reading
// default is 100 to show remaining percentage
// set to fuel tank capacity in liters/gallons etc. and change aforementioned [fuelGaugeValueSuffix] to "L" etc.
fuelGaugeFactor: 100,
};