summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhoekstar <hoekstar@cb376a5e-1013-0410-a455-b6b1f9ac8223>2009-02-22 01:16:42 +0000
committerhoekstar <hoekstar@cb376a5e-1013-0410-a455-b6b1f9ac8223>2009-02-22 01:16:42 +0000
commit0a144ad6d22372c7003282c0ebc9caa88e97a2c1 (patch)
treec05a52d5082e93e413ffa2479637da7ca47e7616
parent858cc4d7049d57f0a172523f92eeee8b83e39137 (diff)
downloadreprap-backup-0a144ad6d22372c7003282c0ebc9caa88e97a2c1.tar.gz
reprap-backup-0a144ad6d22372c7003282c0ebc9caa88e97a2c1.zip
okay, updated the XY diagonals to not be huge.
git-svn-id: https://reprap.svn.sourceforge.net/svnroot/reprap@2584 cb376a5e-1013-0410-a455-b6b1f9ac8223
-rwxr-xr-xtrunk/users/hoeken/pythagoras/make_bot.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/trunk/users/hoeken/pythagoras/make_bot.py b/trunk/users/hoeken/pythagoras/make_bot.py
index fc96eb4e..201b1bab 100755
--- a/trunk/users/hoeken/pythagoras/make_bot.py
+++ b/trunk/users/hoeken/pythagoras/make_bot.py
@@ -138,7 +138,8 @@ def main(argv):
yMidPointNear = nutHeight + washerHeight + rodSize + blockSize + blockSize + blockSize/2.0
yDistance = yMidpointFar - yMidPointNear
- xyDistance = sqrt(xDistance*xDistance + yDistance*yDistance)
+ xyMidpointDistance = sqrt(xDistance*xDistance + yDistance*yDistance)
+ xyDistance = xyMidpointDistance + blockSize + (nutHeight + washerHeight)*2 + 10
#show some header / info
print "(Generated by make_bot.py)"
@@ -148,7 +149,7 @@ def main(argv):
print "( Z Rods: 4 * %06.2fmm)" % (z)
print "(XZ Rods: 4 * %06.2fmm)" % (bot.getXZ())
print "(YZ Rods: 4 * %06.2fmm)" % (bot.getYZ())
- print "(XY Rods: 2 * %06.2fmm)" % (bot.getXY())
+ print "(XY Rods: 2 * %06.2fmm)" % (xyDistance)
print "(Total Volume: %06.2fm^3)" % (bot.getVolume())
print "(Total kebabs: %d)" % (totalRods)
print "(Total nuts required: %d)" % (totalNuts)
@@ -172,7 +173,7 @@ def main(argv):
print "M00 (Starting XY kebabs)"
for i in range(0, xyRods):
- build_diagonal_kebab(bot.getXY(), xyDistance)
+ build_diagonal_kebab(xyDistance, xyMidpointDistance)
# print "M00 (Starting XZ kebabs)"
# for i in range(0, xzRods):