Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed max range bugs in pyDriveLink; added messages in startup/ scripts

  • Loading branch information...
commit c631e15767c843c4d4b3fbe670faf3843a92e4b0 1 parent 756d8e3
root authored
View
4 pyDriveLink.py
@@ -89,7 +89,7 @@ def handleRemoteClientCommmand(command, argument):
return;
else:
direction = int(argument);
- if abs(direction) < 100:
+ if abs(direction) <= 100:
setDriveControlDirection(direction);
else:
return "error steer: value out of bounds;"
@@ -111,7 +111,7 @@ def handleRemoteClientCommmand(command, argument):
testRunDrive();
elif command == "pause":
- time.sleep(.1);
+ time.sleep(.05);
else:
error = "error '%(c)s': unknown command '%(c)s' issued with argument '%(a)s';" %{"c" : command, "a" : argument }
print error;
View
5 startup/SWARMSd
@@ -2,6 +2,9 @@
#
# Start/stop the SWARMS daemons
#
+# This file is linked in the Beagleboards /etc/init.d folder
+# Also, it is linked from init.d, in etc/rc0.d for termination, rc3.d for startup, and rc5.d for normal os running
+
set -e
@@ -14,8 +17,8 @@ case "$1" in
stop)
echo -n "Stopping SWARMSd: "
echo 0 > /sys/class/leds/beagleboard\:\:usr1/brightness
- start-stop-daemon -K -n SWARMSd
killall python
+ start-stop-daemon -K -n SWARMSd
echo "done"
;;
restart)
View
1  startup/netConfig.sh
@@ -1,5 +1,6 @@
#!/bin/bash
#sets up network for use on swarms beagle platform
+#called in ../pyDriveLink.py
idealNetIp='192.168.1.100'
View
2  startup/startupScript.sh → startup/startupScript.sh.deprecated
@@ -1,6 +1,6 @@
#!/bin/sh
#userbutton startup script
-
+#this script has been replaced by swarmsd directly calling pyDriveLink
#starts new loop for waiting for button press
cd /home/root/alex/drivePy/startup/
View
0  startup/userButtonLoop.py → startup/userButtonLoop.py.deprecated
File renamed without changes
Please sign in to comment.
Something went wrong with that request. Please try again.