templates: # defining templates to be used later on
  - &AP_mate
    type: HEW.LM.368.XLNP
    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, GND, 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, RS-485_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]
    image:
      src: images\1X_plug.png
      caption: 68 pin connector for Autopilot 1x (frontal view)
  - &CEX_mate
    type: HEW.LM.368.XLNP
  - &con_i2c
    pinlabels: [GND, +5V, SCL, SDA]
  - &Servo
    pinlabels: [IN1+, IN1-, IN2+, IN2-, DIO1, DIO2, CAN_P, GND, (NA), CAN_N, TRX-, GND, TRX+]
    pins: [A, B, C, D, E, F, G, H, I, J, K, L, M]
  - &wire
    category: bundle
    gauge: 0.14 mm2




connectors:
  Veronte 1X:
    <<: *AP_mate # copying items from the template
    notes: Veronte 1X
  Swash1:
    <<: *Servo
  Swash2:
    <<: *Servo
  Swash3:
    <<: *Servo
  Yaw:
    <<: *Servo
  X5:
    type: DC_power
    pinlabels: [GND, +24V]
  Radio:
    type: temp
    pinlabels: [Tx,Rx,GND,V+]
  CEX:
    type: HEW.LM.368.XLNP
    pinlabels: [CAN_GND,CANB_P,CANB_N]
    pins: [7, 8, 9]  
  ECU:
    type: ECU
    pinlabels: [CAN_GND,CANB_P,CANB_N]
    pins: [H1, E1, E2]
  Servo:
    type: ECU
    pinlabels: [PWM, GND]
  Radar:
    pinlabels: [GND, CAN_L, CAN_H, V+]
    pins: [1,2,3,4]
  S: &splice  # generic autogenerated splice
    style: simple
    autogenerate: true
    type: splice


cables:
  W1:
    <<: *wire
    length: 0.2
    show_equiv: true
    colors: [BNRD, WHBK, BNBK]
  W2:
    <<: *wire
    length: 0.4
    colors: [BK, RD, WH]
  W3:
    <<: *wire
    length: 0.3
    colors: [WHPK, PKBN, WHBU]
  W4:
    <<: *wire
    length: 0.3
    colors: [GY, PK, BU, RD]
  W5:
    <<: *wire
    length: 0.3
    colors: [BK, RD]
  W6:
    <<: *wire
    length: 0.3
    colors: [GYGN, YEGY, PKGN]
  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]


connections:
  -
    - Veronte 1X: [24-26]
    - W1: [1-3]
    - [S,S,S]
    - W2: [1-3]
  -
    - W2: [1-3]
    - Swash1: [H,G,J]
  -
    - W2: [1-3]
    - Swash2: [H,G,J]
  -
    - W2: [1-3]
    - Swash3: [H,G,J]
  -
    - W2: [1-3]
    - Yaw: [H,G,J]
  -
    - Veronte 1X: [65-68]
    - W4: [1-4]
    - [S,S,S,S]
    - W5: [1,1,2,2]
  -
    - W5: [1-2]
    - X5: [1-2]
  -
    - Veronte 1X: [19-21]
    - W3: [1-3]
    - Radio: [2,1,3]
  -
    - Veronte 1X: [27-29]
    - W6: [1-3]
    - [S,S,S]
    - W7: [1-3]
  -
    - W7: [1-3]
    - CEX: [7-9]
  -
    - W7: [1-3]
    - Radar: [1,3,2]
  -
    - Veronte 1X: [27-29]
    - W6: [1-3]
    - [S,S,S]
    - W9: [1-3]
  -
    - W9: [1-3]
    - ECU: [H1, E1, E2]
  -
    - Veronte 1X: [1,9]
    - W8: [1-2]
    - Servo: [1-2]