Add color configuration and extra signals to vehicle frames
This commit is contained in:
+31
-4
@@ -10,6 +10,7 @@ DECODER_RULES = {
|
||||
normalize_id("0x011F"): FrameDef(
|
||||
can_id="0x011F",
|
||||
description="Engine ECM Main Broadcast",
|
||||
color="#e41a1c",
|
||||
signals=[
|
||||
SignalDef(
|
||||
name="Engine",
|
||||
@@ -25,15 +26,41 @@ DECODER_RULES = {
|
||||
name="Pressure / Load",
|
||||
bit_start=16,
|
||||
bit_length=16,
|
||||
factor=1.0,
|
||||
offset=0.0,
|
||||
factor=0.05,
|
||||
offset=0,
|
||||
is_signed=False,
|
||||
byte_order="little",
|
||||
unit="raw",
|
||||
unit="%",
|
||||
),
|
||||
],
|
||||
),
|
||||
normalize_id("0x0CFF3300"): FrameDef(
|
||||
can_id="0x0CFF3300",
|
||||
description="Engine temperature block",
|
||||
color="#0080fe",
|
||||
signals=[
|
||||
SignalDef(
|
||||
name="Engine coolant temp",
|
||||
bit_start=8,
|
||||
bit_length=8,
|
||||
factor=1,
|
||||
offset=0.0,
|
||||
is_signed=False,
|
||||
byte_order="big",
|
||||
unit="℃",
|
||||
),
|
||||
SignalDef(
|
||||
name="Engine oil temp",
|
||||
bit_start=40,
|
||||
bit_length=8,
|
||||
factor=1,
|
||||
offset=0.0,
|
||||
is_signed=False,
|
||||
byte_order="big",
|
||||
unit="℃",
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
}
|
||||
|
||||
def decode_dataframe(df, can_id):
|
||||
|
||||
Reference in New Issue
Block a user