Skip to content

Commit

Permalink
minor updates, new script
Browse files Browse the repository at this point in the history
  • Loading branch information
ironsheep committed Aug 11, 2023
1 parent 5749e33 commit 24eec35
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,4 @@ dkms.conf
src/chip_recipr_ctr.spin2
src/test_bldc_id_recipr.spin2
src/*REF.spin2
*.md5
25 changes: 25 additions & 0 deletions scripts/diffSrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/bash

SRC_PYTHON_DIR=/home/pi/Projects/P2-BLDC-Control
DST_PYTHON_DIR="/Users/stephen/Projects/Projects-ExtGit/IronSheepProductionsLLC/Projects P2/P2-BLDC-Motor-Control/P2-BLDC-Motor-Control/pythonSrc"

SRC_SPIN_DIR=/Users/stephen/Dropbox/PropV2-Shared/Projects/P2-BLDC-Motor-ControlSW
DST_SPIN_DIR="/Users/stephen/Projects/Projects-ExtGit/IronSheepProductionsLLC/Propeller2/P2-BLDC-MotorControl/P2-BLDC-Motor-Control/src"

DST_SPIN_DIR2="/Users/stephen/Projects/Projects-ExtGit/IronSheepProductionsLLC/Projects P2/P2-BLDC-Motor-Control/P2-BLDC-Motor-Control/src"

if [ ! -d "${DST_SPIN_DIR}" ]; then
DST_SPIN_DIR="${DST_SPIN_DIR2}"
fi

#(set -x;sdiff -s "${SRC_SPIN_DIR}"/*.spin2 "${DST_SPIN_DIR}")
#(set -x;cp -p "${SRC_SPIN_DIR}"/p2font16 "${DST_SPIN_DIR}")
#(set -x;scp -p pi@pip2iotgw-wifi.home:"${SRC_PYTHON_DIR}"/* "${DST_PYTHON_DIR}")


for SPINFIL in "${SRC_SPIN_DIR}"/*.spin2; do
SPINBASE=$(basename "${SPINFIL}")
echo ""
echo "-- ${SPINBASE}"
(sdiff -s "${SRC_SPIN_DIR}/${SPINBASE}" "${DST_SPIN_DIR}/${SPINBASE}")
done
9 changes: 4 additions & 5 deletions src/test_new_ramps.spin2
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,10 @@ CON { fixed io pins }

OBJ { our Motor(s) }

user : "isp_bldc_motor_userconfig" ' driver configuration
'tvDebug : "isp_hdmi_debug" ' the single BLDC motor
'wheel : "isp_bldc_motor" ' the single BLDC motor

distConv : "isp_dist_utils" ' distance conversion utils
user : "isp_bldc_motor_userconfig" ' driver configuration
'tvDebug : "isp_hdmi_debug" ' the single BLDC motor
'wheel : "isp_bldc_motor" ' the single BLDC motor
distConv : "isp_dist_utils" ' distance conversion utils

CON { driver interface Constants}

Expand Down

0 comments on commit 24eec35

Please sign in to comment.