blob: 8aa0322551af34add603cde271e88e117465243b (
plain)
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
|
module DriveData 1.0;
@config: {id: "DriveData"}
interface InstrumentCluster {
/*
* In Km/H
*/
real speed;
/*
* In Km/H
*/
real speedLimit;
/*
* In Km/H
*/
real speedCruise;
/*
* Between 0 (inclusive) and 100 (inclusive)
*/
real ePower;
/*
* 0 -> Park
* 1 -> Neutral
* 2 -> Drive
* 3 -> Reverse
*/
int driveTrainState;
bool lowBeamHeadlight;
bool highBeamHeadlight;
bool fogLight;
bool stabilityControl;
bool seatBeltNotFastened;
bool leftTurn;
bool rightTurn;
bool ABSFailure;
bool parkBrake;
bool tyrePressureLow;
bool brakeFailure;
bool airbagFailure;
/*
* outside tempterature in celsius degrees
*/
real outsideTemperatureCelsius;
/*
* Mileage in km
*/
real mileageKm;
/*
* 0 - normal
* 1 - eco
* 2 - sport
*/
int drivingMode;
int drivingModeRangeKm;
int drivingModeECORangeKm;
/*
* Navigation
* progress 0.0 - 1.0
* distance in km
*/
real navigationProgressPercents;
real navigationRouteDistanceKm;
/** Whether a secondary (cluster) screen is available */
bool available;
}
|