Community

Question about modi...
 

Question about modify the tracks.  

  RSS

(@lguo888)
Contributor
Joined: 1 year ago
Posts: 5
September 18, 2019 11:28 am  

Hi, Can I add code of erasing at beginning of each track instead of adding erase track between each track like the following?  I found out the ball got stuck after running several tracks. It can't run erase track completely. The ball will erase half way then straight back to 0, 0 then erase several line again and got stuck there with clicking noise.  

The following is a sample of my track. Thanks

0 0
628.3185307 1

-498.82117872 1
-498.82580965 0.99618724
-498.82750241 0.97932275
-498.83394463 0.73685553
-498.83105178 0.68176975
-498.80281375 0.52431305
-498.78122368 0.4458245
-498.72651156 0.35852787

.

.

.

 


Quote
(@bruce)
Admin
Joined: 1 year ago
Posts: 200
September 18, 2019 5:49 pm  

Yes, you can add an erase move at the beginning of a track - the first two lines in your example would do that, with Theta changing from 0 to 200*Pi (100 rotations) and Rho changing from 0 to 1 (center to outer edge). Not sure if an empty line is handled "gracefully," and that may be the cause of your reported problem (try removing it). But the example you give, while it shouldn't cause problems (without the empty line), will first erase from center to outside (100 revs along the way), and then circle in the opposite direction about 180 times, staying at the edge (this is the move between point 628.319 1 and point -498.821 1). If you want to force a 100-rev erase before a track that starts at Theta = -498.821, either add or subtract 628.319 to or from -498.821 to get the starting Theta of the erase move (depending on which way, CW or CCW , you want it to erase).

Try adding the single line 129.498 0 at the beginning of your track that started at -498.821 1 and make sure there are no empty lines.

The clicking you hear when the problem occurred is from the Rho axis running into the physical limit of its reach. This causes no problem for the motors or the mechanics, but is annoying.

This post was modified 1 month ago 3 times by Bruce

ReplyQuote
(@lguo888)
Contributor
Joined: 1 year ago
Posts: 5
September 19, 2019 10:26 am  

Thank you, Bruce, I will try those out. 


ReplyQuote
(@crsolomon)
Contributor
Joined: 1 year ago
Posts: 29
September 19, 2019 10:41 pm  

Look at the reverse HEP.thr  file I posted in the "can we get default tracks".   I did an erase like you want before I ran the rest of the code - and you can see how it makes a smooth transition with no "jump". 


ReplyQuote
Share:

We take your privacy seriously and will only use your personal information to provide you with the products and services you request from us. Please see our privacy policy for more details.

  
Working

Please Login or Register