Skip to content

Commit

Permalink
Refactor propeller test to work when run directly.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisl8 committed Oct 13, 2024
1 parent 2495d27 commit 94b76c9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
import curses
import threading
from math import sqrt, pow, radians, pi
from PropellerSerialInterface import PropellerSerialInterface
from PropellerSerialDataPacketTypes import PropellerSerialDataPacketTypes
from PropellerSerialTestCursesInterface import Screen
from checkPropellerCodeVersionNumber import checkPropellerCodeVersionNumber
from . PropellerSerialInterface import PropellerSerialInterface
from . PropellerSerialDataPacketTypes import PropellerSerialDataPacketTypes
from . PropellerSerialTestCursesInterface import Screen
from . checkPropellerCodeVersionNumber import checkPropellerCodeVersionNumber


class Linear(object):
Expand Down
3 changes: 2 additions & 1 deletion scripts/PropellerSerialTest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,5 @@ source "${HOME}/ros2_ws/install/setup.bash"

export PYTHONPATH=${HOME}/ArloBot/arlobot_ros/arlobot_ros

python "${SCRIPTDIR}/../PropellerSerialTest/PropellerSerialTest.py" "${USB_PORT}"
cd "${SCRIPTDIR}/../arlobot_ros" || exit
python -m arlobot_ros.PropellerSerialTest "${USB_PORT}"

0 comments on commit 94b76c9

Please sign in to comment.