init
This commit is contained in:
Executable
+43
@@ -0,0 +1,43 @@
|
||||
version: 1.0.0
|
||||
source:
|
||||
file: 空调-天幕-氛围灯CAN信号矩阵表.xlsx
|
||||
sheet: 天幕
|
||||
scope: normalized_roof_subset
|
||||
hardware_execution_allowed: false
|
||||
limitations:
|
||||
- Source workbook is partial and vehicle-variant applicability is not supplied.
|
||||
- Anti-pinch and motor fault signals are feedback-only safety evidence in this dry-run.
|
||||
messages:
|
||||
- name: Roof_Glass_Control_4C1_13
|
||||
frame_id: 1217
|
||||
minimum_payload_bytes: 4
|
||||
fixed_signals: {Sub_ID: 19}
|
||||
signals:
|
||||
- {name: Sub_ID, start_bit: 0, bit_length: 8}
|
||||
- {name: Adjust_The_Skylight_Transmittance_Command_S, start_bit: 16, bit_length: 8}
|
||||
- {name: Canopy_Automatic_Dimming_0x4C1_S, start_bit: 24, bit_length: 2}
|
||||
- name: Roof_Shade_Control_3E6_04
|
||||
frame_id: 998
|
||||
minimum_payload_bytes: 5
|
||||
fixed_signals: {Sub_ID: 4}
|
||||
signals:
|
||||
- {name: Sub_ID, start_bit: 0, bit_length: 8}
|
||||
- {name: Rear_Awning_Shade_Screen_Position_Percentage_S, start_bit: 32, bit_length: 8}
|
||||
- name: Roof_Glass_Status_4BB
|
||||
frame_id: 1211
|
||||
minimum_payload_bytes: 57
|
||||
signals:
|
||||
- {name: Current_Transmittance_Of_Skylight_S, start_bit: 444, bit_length: 4}
|
||||
- {name: Current_Status_Of_Dimming_Sunroof_S, start_bit: 448, bit_length: 3}
|
||||
- {name: Canopy_Automatic_Dimming_0x4BB_S, start_bit: 452, bit_length: 2}
|
||||
- name: Roof_Shade_Status_47F
|
||||
frame_id: 1151
|
||||
minimum_payload_bytes: 7
|
||||
signals:
|
||||
- {name: Percentage_Of_Rear_Canopy_Position_47F_S, start_bit: 0, bit_length: 8}
|
||||
- {name: The_Back_Canopy_Closed_State_47F_S, start_bit: 8, bit_length: 2}
|
||||
- {name: Back_Canopy_Initialization_State_47F_S, start_bit: 10, bit_length: 2}
|
||||
- {name: The_Current_Action_Status_Of_The_Back_Sky_47F_S, start_bit: 16, bit_length: 3}
|
||||
- {name: Hall_Signal_Of_Rear_Canopy_Motor_A47F_S, start_bit: 21, bit_length: 1}
|
||||
- {name: Hall_Signal_Of_Rear_Canopy_Motor_B47F_S, start_bit: 22, bit_length: 1}
|
||||
- {name: Thermal_Protection_Status_Of_Rear_Canopy_Motor_47F_S, start_bit: 48, bit_length: 1}
|
||||
Executable
+48
@@ -0,0 +1,48 @@
|
||||
apiVersion: cognitive-agent/v1alpha1
|
||||
kind: SignalMapping
|
||||
metadata:
|
||||
id: roof-reference-vehicle-mapping
|
||||
name: Roof mapping from supplied CAN matrix
|
||||
version: 1.0.0
|
||||
description: Virtual-only mapping normalized from the supplied roof worksheet.
|
||||
spec:
|
||||
domain: roof
|
||||
platform: reference_vehicle
|
||||
dbc_ref: ../../../platforms/reference_vehicle/can/dbc/vehicle.dbc
|
||||
matrix_ref: can-matrix.yaml
|
||||
status: draft
|
||||
mappings:
|
||||
- capability: roof.set_shade_position
|
||||
parameter: position_pct
|
||||
target_zone: vehicle
|
||||
compiler_handler: compile_integer
|
||||
bus: cabin_can
|
||||
message: Roof_Shade_Control_3E6_04
|
||||
signal: Rear_Awning_Shade_Screen_Position_Percentage_S
|
||||
feedback_message: Roof_Shade_Status_47F
|
||||
feedback_signal: Percentage_Of_Rear_Canopy_Position_47F_S
|
||||
feedback_handler: compile_integer
|
||||
unit: percent
|
||||
- capability: roof.set_transmittance
|
||||
parameter: transmittance_pct
|
||||
target_zone: vehicle
|
||||
compiler_handler: compile_integer
|
||||
bus: cabin_can
|
||||
message: Roof_Glass_Control_4C1_13
|
||||
signal: Adjust_The_Skylight_Transmittance_Command_S
|
||||
feedback_message: Roof_Glass_Status_4BB
|
||||
feedback_signal: Current_Transmittance_Of_Skylight_S
|
||||
feedback_handler: compile_transmittance_bucket
|
||||
unit: percent
|
||||
- capability: roof.set_automatic_dimming
|
||||
parameter: state
|
||||
target_zone: vehicle
|
||||
compiler_handler: compile_enum
|
||||
value_map: {"on": 1, "off": 2}
|
||||
bus: cabin_can
|
||||
message: Roof_Glass_Control_4C1_13
|
||||
signal: Canopy_Automatic_Dimming_0x4C1_S
|
||||
feedback_message: Roof_Glass_Status_4BB
|
||||
feedback_signal: Canopy_Automatic_Dimming_0x4BB_S
|
||||
feedback_handler: compile_enum
|
||||
feedback_value_map: {"on": 1, "off": 2}
|
||||
Reference in New Issue
Block a user