aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivedata/drivedata.qface
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivedata/drivedata.qface')
-rw-r--r--src/drivedata/drivedata.qface75
1 files changed, 75 insertions, 0 deletions
diff --git a/src/drivedata/drivedata.qface b/src/drivedata/drivedata.qface
new file mode 100644
index 00000000..8aa03225
--- /dev/null
+++ b/src/drivedata/drivedata.qface
@@ -0,0 +1,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;
+}