templates: # defining templates to be used later on
  - &ECU_C2
    type: Molex 643193211
    pinlabels: [TR Gearbox+, 90° Gear Box+, EGT7+, EGT8+, TR Gearbox-, 90° Gear Box-, EGT7-, EGT8-, Temp 1+, Temp 2+, CHT1+, CHT2+, Temp 1-, Temp 2-, CHT1-, CHT2-, Knock Ground, Knock sensor 1, Knock sensor 2, Extra Analog sensor 6,
    Extra Analog sensor 7, Extra Analog sensor 8, MAF sensor, Variable Digital in 5, Extra 12V Out 1, Extra 12V Out 2, ECU Map/Baro, Engine Ground 2, E-Throttle 2+, E-Throttle 1-, E-Throttle 2-, E-Throttle 1+]
    pins: [A1,A2,A3,A4,B1,B2,B3,B4,C1,C2,C3,C4,D1,D2,D3,D4,E1,E2,E3,E4,F1,F2,F3,F4,G1,G2,G3,G4,H1,H2,H3,H4]
    image:
      src: images\ECU2.png
      caption: Molex 643193211
  - &Type-K
    type: Type-K
    pinlabels: [+,-]
    pins: [1,2]
    image:
      src: images\typekf.png
      width: 300
  - &Knock
    type: F02U.B00.966-01
    pins: [1,2]
    pinlabels: [Sig+, Sig-]
    image:
      src: images\KS.png
  - &logic_wire
    category: bundle
    gauge: 18 AWG
  - &power_wire
    category: bundle
    gauge: 14 AWG
  - &thermo_wire
    category: bundle
    gauge: 20 AWG
  
connectors:
  ECU:
    <<: *ECU_C2 # copying items from the template
    notes: ECU Connector 2 (GPO High side!)
  Knock sensor 1:
    <<: *Knock
  # Knock sensor 2:
  #   <<: *Knock
  MAF Sensor:
    type: Bosch 1928405138
    pins: [1,2,3,4,5]
    pinlabels: [NTC-,GND,NTC+,12V,MAF Signal]
    image:
      src: images\MAF.png
      width: 300
  EGT1:
    <<: *Type-K
    notes: (Female Connector)
  EGT2:
    <<: *Type-K
    notes: (Female Connector)
  CHT1:
    <<: *Type-K
    notes: (Female Connector)
  CHT2:
    <<: *Type-K
    notes: (Female Connector)
  S: &splice  # generic autogenerated splice
    style: simple
    autogenerate: true
    type: splice
  Engine GND: &GND
    style: simple
    autogenerate: true
    type: Engine GND


cables:
  W1:
    <<: *logic_wire
    length: 56 Inches
    colors: [WH, BN]
  W2:
    <<: *logic_wire
    length: 50 Inches
    colors: [BN]
    notes: Ring Teriminal to bolt on Engine block
  W3:
    <<: *logic_wire
    length: 27 Inches
    colors: [BK]
  W4:
    <<: *thermo_wire
    length: 48 Inches
    colors: [YE,RD]
  W5:
    <<: *thermo_wire
    length: 48 Inches
    colors: [YE,RD]
  W6:
    <<: *thermo_wire
    length: 52 Inches
    colors: [YE,RD]
  W7:
    <<: *thermo_wire
    length: 52 Inches
    colors: [YE,RD]


connections:
  -
    - ECU: [E2,E1]
    - W1: [1-2]
    - Knock sensor 1: [1-2]
  # -
  #   - ECU: [E3,E1]
  #   - W2: [1-2]
  #   - Knock sensor 2: [1-2]
  -
    - ECU: [F3]
    - W3: [1]
    - MAF Sensor: [5]
  -
    - ECU: [C1,D1]
    - W4: [1-2]
    - EGT1: [1-2]
  -
    - ECU: [C2,D2]
    - W5: [1-2]
    - EGT2: [1-2]
  -
    - ECU: [C3,D3]
    - W6: [1-2]
    - CHT1: [1-2]
  -
    - ECU: [C4,D4]
    - W7: [1-2]
    - CHT2: [1-2]
  -
    - ECU: [Engine Ground 2]
    - W2: [1]
    - [Engine GND]