Panel Wiring

From Bearhawk
Revision as of 13:12, 7 July 2020 by Admin (talk | contribs)
Jump to navigation Jump to search

Drawing

Docs

https://static.garmin.com/pumac/GTX327Transponder_InstallationManual.pdf
http://grtavionics.com//media/Remote-EIS-Install-and-User-Manual-A.pdf
http://grtavionics.com//media/GPS-Safe-Fly-Install-Manual-Rev-P.pdf
http://grtavionics.com//media/ARINC-429-External-Module-Single-Board-Rev-A.pdf
http://grtavionics.com//media/10-1-Sport-Horizon-Installation-Manual-Rev-A.pdf
https://uavionix.com/downloads/echo-uat/echoUAT-User-and-Installation-Guide.pdf
https://www.valavionics.com/uploads/2/1/5/0/21502568/nav_2kr_install_manual_original_issue_june_2013.pdf
https://www.bendixking.com/content/dam/bendixking/en/documents/document-lists/downloads-and-manuals/8300-008-DigiFlight-II-Series-Autopilot-Installation-Manual.pdf

old drawing

script

This makes the anchor points on the draw.io stuffs

#!/bin/bash 

if [ -z "$1" ] || [ -z "$2" ]; then
  echo "usage: $0 <number of elements> <side>"
  exit
fi 

if [ "$2" == "left" ]; then
  SIDE=0
else
  SIDE=1
fi

echo "points=["

POINTS=$(($1+1))
POINTS=$1
SPACING=`echo "scale=3; 1/$POINTS" | bc`
NUM=`echo "scale=3; $SPACING/2" | bc`

for (( I=1; I<=$POINTS; I++ )); do

  if [ "$I" == "$POINTS" ]; then
    echo "[${SIDE},0${NUM}]]"
  else
    echo "[${SIDE},0${NUM}],"
  fi

  TMP=`echo "scale=3; $NUM + $SPACING" | bc`
  NUM=$TMP

done