What problem does it solve?
Customizing A2L (ASAP2) files generated from Simulink models is error-prone: the coder.asap2 and coder.mapping APIs have silent failure modes, counterintuitive coefficient directions, and undocumented type constraints that produce invalid calibration files rejected by tools like INCA and CANape.
Core Features & Use Cases
- COMPU_METHOD Creation: Add LINEAR, RAT_FUNC, TAB_VERB, and IDENTICAL conversion methods with correct coefficient direction (PHYS-to-INT for RAT_FUNC).
- Lookup Table and Axis Customization: Convert STD_AXIS to COM_AXIS with ForceShared, create CURVE/MAP/CUBOID characteristics with proper RecordLayout struct arrays.
- Variant Coding and Grouping: Create VARIANT_CODING with VarCriterion and VarCharacteristic, organize elements into GROUPs, and add BIT_OPERATION to measurements.
- Use Case: An engineer needs to export an A2L file where a temperature signal uses a custom RAT_FUNC conversion, breakpoints are shared across lookup tables, and certain inports are excluded. This Skill generates the correct getEcuDescriptions, add/set, and export calls while avoiding silent pitfalls like omitting CustomEcuDescriptions.
Quick Start
Ask the agent to add a RAT_FUNC COMPU_METHOD and convert a lookup table to COM_AXIS in the A2L file exported from your Simulink model.