NowPlayingWatcher follows the head unit's media sessions (listening only, never connecting to a player); NowPlaying picks what plays and cleans the text. Tiles shows source, title, artist, cover and progress under the battery; Halloween carves title and artist into the hill. Settings: "Show what's playing", on by default. Nothing is logged or sent. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LhzAVaUyqcw5PkGjz4mWW6
29 lines
1.1 KiB
Java
29 lines
1.1 KiB
Java
package com.evsuite.abrp;
|
|
|
|
/**
|
|
* One reading for the drawn Overview styles (Retro, Futuristic, Sci-fi, Cartoon, MG and the canvas styles):
|
|
* what they show, already in display units. Every field is null when unread, and the styles show that as dashes, never 0.
|
|
*/
|
|
final class ClusterValues {
|
|
Float socPercent;
|
|
Float rangeKm;
|
|
Float powerKw;
|
|
Float speedKmh;
|
|
/** The car's raw gear code ({@link Gear}). */
|
|
Integer gear;
|
|
/** kWh/100 km over the last 5 minutes and since start; km since start. */
|
|
Double usage5Min;
|
|
Double usageTrip;
|
|
Double tripKm;
|
|
Float climateCelsius;
|
|
Float odometerKm;
|
|
/** "HH:mm", never null. */
|
|
String clock = "";
|
|
/** Tyre pressures formatted in the chosen unit, "—" when unread; never null. */
|
|
String tyreFl = "—", tyreFr = "—", tyreRl = "—", tyreRr = "—";
|
|
/** Battery power over the last two minutes, oldest first, NaN where unread; null before any. */
|
|
float[] powerTrail;
|
|
/** What plays ({@link NowPlaying}): the title, null when nothing does or it is off, and the artist or null. */
|
|
String songTitle, songArtist;
|
|
}
|