From 24eec35487c1e32edcfa579c36175f04ffc58312 Mon Sep 17 00:00:00 2001 From: Stephen M Moraco Date: Fri, 11 Aug 2023 13:33:37 -0600 Subject: [PATCH] minor updates, new script --- .gitignore | 1 + scripts/diffSrc | 25 +++++++++++++++++++++++++ src/test_new_ramps.spin2 | 9 ++++----- 3 files changed, 30 insertions(+), 5 deletions(-) create mode 100755 scripts/diffSrc diff --git a/.gitignore b/.gitignore index e673b29..0c7b4fe 100644 --- a/.gitignore +++ b/.gitignore @@ -71,3 +71,4 @@ dkms.conf src/chip_recipr_ctr.spin2 src/test_bldc_id_recipr.spin2 src/*REF.spin2 +*.md5 diff --git a/scripts/diffSrc b/scripts/diffSrc new file mode 100755 index 0000000..86fef0a --- /dev/null +++ b/scripts/diffSrc @@ -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 diff --git a/src/test_new_ramps.spin2 b/src/test_new_ramps.spin2 index d0b7f83..44eb844 100644 --- a/src/test_new_ramps.spin2 +++ b/src/test_new_ramps.spin2 @@ -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}