templates: # defining templates to be used later on
  - &AP_mate
    type: FMW.LM.368.XLC
    pinlabels: [I/O1, I/O2, I/O3, I/O4, I/O5, I/O6, I/O7, I/O8, GND, I/O9, I/O10, I/O11, I/O12, I/O13, I/O14, I/O15, I/O16,
    GND, RS 232 TX,RS 232 RX,GND,Analog 4,Analog 5,GND, CanA P, CanA N,No Connect, CANB_P, CANB_N, GND, I2C_CLK, I2C_DATA,
    GND, 3.3V, GND, 5V, GND, ANALOG_1, ANALOG_2, ANALOG_3, GND, FTS1_OUT, FTS2_OUT, GND, V_ARB_TX, V_ARB_RX,
    GND, V_ARB_VCC, FTS3_OUT_MPU, OUT_RS485_P, OUT_RS485_N, IN_RS845_N, IN_RS845_P, RS485_GND, EQEP_A, EQEP_B, EQEP_S, EQEP_I,
    GND, V_USB_DP, V_USB_DN, V_USB_ID, FTS_OUT_MPU, FTS2_OUT_MPU, GND, GND, VCC, VCC]
    pins: [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68]
    image:
      src: images\CEX_plug.png
      caption: 68 pin connector for Autopilot 1x (frontal view)
    additional_components:
      - type: Crimp # short identifier used in graph
        subtype: FGN.0M.555.ZZC, 26 - 22 AWG # extra information added to type in bom
        qty_multiplier: pincount # multipier for quantity (number of populated pins)
        manufacturer: LEMO # set manufacter name
  - &CEX_mate
    type: FMW.LM.368.XLC
  - &con_i2c
    pinlabels: [GND, +5V, SCL, SDA]
  - &Servo
    type: Amphenol C091 M16 flange-mount male metal receptacle, 12-pin
    #pinlabels: [IN1+, IN1-, IN2+, IN2-, DIO1, DIO2, CAN_P, GND, CAN_N, TRX-, GND, TRX+]
    #pins: [A, B, C, D, E, F, G, H, J, K, L, M]
    pinlabels: [CANP,CANN]
    pins: [G, J]
  - &VPX_j2
    pinlabels: [Switch input 1, Switch input 2, Switch input 3, Switch input 4, Switch input 5, Switch input 6, Switch input 7, Switch input 8, Switch input 9, Switch input 10, Starter annun input, Aux batt voltage input, Flap up switch, Flap down switch, Roll trim left input, Roll trim right input, Pitch trim up input, Pitch trim down input]
    pins: [1,2,3,4,5,6,7,8,9,10,11,12,14,15,16,17,18,19]
    type: 25-pin dsub (Male Terminals)
    image:
      src: images\25dsub.png
  - &VPX_j8
    pinlabels: [Device (5A), Device (10A), Device (5A), Device (5A), Device (5A), Device (5A), Device (5A), Device (5A)]
    pins: [1,2,3,4,5,6,7,8]
  - &wire
    category: bundle
    gauge: 22 AWG
  - &logic_wire
    category: bundle
    gauge: 18 AWG
  # - &Nav
  #   type: HEW.LM.368.XLNP
  #   pinlabels: [NAV/POS, ACS, GND, SYNC]
  #   pins: [1,2,3,4]  
  #   image:
  #     src: images\Nav.png
  # - &relay
  #   type: TBD
  #   pins: [1,2,3,4]
  #   pinlabels: [switch+, switch-, coil+, coil-]




connectors:
  Veronte 1X:
    <<: *AP_mate # copying items from the template
    notes: Veronte 1X
  VP-X J2:
    <<: *VPX_j2
  # VP-X J8:
  #   <<: *VPX_j8
  Swash1:
    <<: *Servo
    image:
      src: images\A2Logic.png
  Swash2:
    <<: *Servo
  Swash3:
    <<: *Servo
  Yaw:
    <<: *Servo
  # VPX J12:
  #   #type: DC_power
  #   pinlabels: [GND, +10A]
  #   pins: [4,7]  
  Radio:
    type: temp
    pinlabels: [Tx,Rx]
  CEX:
    type: FMW.LM.368.XLC
    pinlabels: [CAN_GND,CANB_P,CANB_N]
    pins: [7, 8, 9]  
    image:
      src: images\CEX_plug.png
    additional_components:
      - type: Crimp # short identifier used in graph
        subtype: FGN.0M.555.ZZC, 26 - 22 AWG # extra information added to type in bom
        qty_multiplier: populated         # multipier for quantity (number of populated pins)
        manufacturer: LEMO # set manufacter name
  ECU CAN Bus:
    type: DT04-3P 
    pinlabels: [CANB_P,CANB_N,CAN_GND]
    pins: [A,B,C]
    image:
      src: images\DT04-3P.png
      width: 225
  # Servo:
  #   type: Temp
  #   pinlabels: [PWM, GND]
  Radar:
    type: DTM04-4P
    notes: Mates with DTM06-4S
    pinlabels: [CAN_L, CAN_H] 
    pins: [1,2,3,4]
    image:
      src: images\DTM04-4P.png
  Resistor:
    type: Temp
    pinlabels: [CAN_L, CAN_H]
  S: &splice  # generic autogenerated splice
    style: simple
    autogenerate: true
    type: splice
  GND: &GND
    style: simple
    autogenerate: true
    type: GND
  # Nav Light 1:
  #   <<: *Nav
  # Nav Light 2:
  #   <<: *Nav
  # Nav relay:
  #   <<: *relay
  # ACS relay:
  #   <<: *relay
  shield1:
    pinlabels: [Shield]
  shield2:
    pinlabels: [Shield]

cables:
  W1:
    <<: *wire
    length: 1 Inch
    colors: [BKWH,BKBN]
    shield: true
    notes: Twisted Pair
  # W2:
  #   <<: *wire
  #   length: 0.4
  #   colors: [BK, RD, WH]
  W3:
    <<: *wire
    length: 0.3 TBD
    colors: [PKWH,BNPK]
    shield: true
    notes: Twisted Pair
  # W5:
  #   <<: *wire
  #   length: 0.3
  #   colors: [BK, RD]
  W6:
    <<: *wire
    length: 40 Inches
    colors: [GNYE,GNPK,PKYE]
    shield: true
    notes: Twisted Pair | Veronte to ECU
  W7:
    <<: *wire
    length: 13 Inches
    colors: [BU,RD,BK]
    shield: true
    notes: Twisted Pair | Veronte to CEX
  W8:
    <<: *wire
    length: 0.3
    colors: [WH,YE,GY,PK,BU,RD,BK,VT,PKGY,BURD,GNWH,GNBN,YEWH,BNYE,GYWH,BNGY,BUWH,BUBN,RDWH,RDBN,GNGY,WH,BN,GN,YE,GY,PK,BU,RD,BK,VT,PKGY,BURD,GNWH,GNBN,YEWH,BNYE,GYWH,BNGY,PKWH,BNPK,BUWH,BUBN,RDWH,RDBN,BKWH,BKBN,GNGY,GNYE,GNPK,PKYE,WH,BN,GN,YE,GY,PK,BU,RD]
  # W7: 
  #   <<: *wire
  #   length: 0.3
  #   colors: [BU, RD, BK]
  # W8:
  #   <<: *wire
  #   length: 0.3
  #   colors: [WH, BK]
  # W9: 
  #   <<: *wire
  #   length: 0.3
  #   colors: [BK, WH, PK]
  # W10: 
  #   <<: *wire
  #   length: 0.3
  #   colors: [BK, WH, GN]
  W11: 
    <<: *wire
    length: 73 Inches
    colors: [YE, GN]
    shield: true
    notes: Twisted Pair
  W12: 
    <<: *wire
    length: 73 Inches
    colors: [YE, GN]
    shield: true
    notes: Twisted Pair
  # W12:
  #   <<: *logic_wire
  #   length: 0.2
  #   colors: [GN]
  W13:
    <<: *wire
    length: 75.5 Inches
    colors: [BN,GN]
  # W14:
  #   <<: *logic_wire
  #   length: 0.2
  #   colors: [RD]
  W15: 
    <<: *wire
    length: 12 Inches
    colors: [YE, GN]
    shield: true
    notes: Twisted Pair
  W16: 
    <<: *wire
    length: 6 Inches
    colors: [YE, GN]
    shield: true
    notes: Twisted Pair
  W17: 
    <<: *wire
    length: 6 Inches
    colors: [YE, GN]
    shield: true
    notes: Twisted Pair
  W18: 
    <<: *wire
    length: 170 Inches
    colors: [YE, GN]
    shield: true
    notes: Twisted Pair | (Tail Mounted?)


connections:
  -
    - Veronte 1X: [1,4-8,10-17,22-23,27,31-32,34,36,38-40,42-43,45-46,48-58,60-64,67-68]
    - W8: [1-6,8-15,18-19,21-23,25,27,29-31,33-34,36-37,39-49,51-55,58-59]
  -
    - Veronte 1X: [9,18,21,24,33,35,37,41,44,47,59,65-66]
    - W8: [7,16-17,20,24,26,28,32,35,38,50,56-57]
    - [GND,GND,GND,GND,GND,GND,GND,GND,GND,GND,GND,GND,GND]
  -
    - Veronte 1X: [25-26]
    - W1: [1-2]
    # - [S,S,S]
    # - W2: [1-3]
  -
    - W1: [1-2]
    - [S,S]
    - W15: [1-2]
    - Swash1: [G,J]
  -
    - W1: [1-2]
    - [S,S]
    - W16: [1-2]
    - Swash2: [G,J]
  -
    - W1: [1-2]
    - [S,S]
    - W17: [1-2]
    - Swash3: [G,J]
  -
    - W1: [1-2]
    - [S,S]
    - W18: [1-2]
    - Yaw: [G,J]
  -
    - Veronte 1X: [19-20]
    - W3: [1-2]
    - Radio: [2,1]
  -
    - W6: [3,1,2]
    - [S,S,S]
    - W7: [1-3]
    - CEX: [7-9]
  -
    - W6: [1-2]
    - [S,S]
    - W12: [1-2]
    - Radar: [2,1]
  -
    - Veronte 1X: [28-30]
    - W6: [1-3]
    - ECU CAN Bus: [A,B,C]
  -
    - W6: [1-2] 
    - [S, S]
    - W11: [1-2]
    - Resistor: [2,1]
  -
    - Veronte 1X: [2-3]
    - W13: [1-2]
    - VP-X J2: [1-2]
  # -
  #   - W6: s
  #   - shield1: [1]
  # - 
  #   - shield1: [1]
  #   - W7: s
  # - 
  #   - shield1: [1]
  #   - W11: s
  # - 
  #   - shield1: [1]
  #   - W12: s
  # -
  #   - W1: s
  #   - shield2: [1]
  # -
  #   - shield2: [1]
  #   - W16: s
  # -
  #   - shield2: [1]
  #   - W17: s
  # -
  #   - shield2: [1]
  #   - W15: s
  # -
  #   - shield2: [1]
  #   - W18: s
  # -
  #   - W3: s
  #   - [GND]
  # -
  #   - W17: s
  #   - [GND]
  # -
  #   - W16: s
  #   - [GND]
  # -
  #   - W18: s
  #   - [GND]
  # -
  #   - W15: s
  #   - [GND]
  # -
  #   - W7: s
  #   - [GND]
  # -
  #   - W11: s
  #   - [GND]
  # -
  #   - W12: s
  #   - [GND]
  # -
  #   - [GND]
  #   - W3: s
  # -
  #   - [GND]
  #   - W1: s
  # -
  #   - [GND]
  #   - W6: s
  