#garfield Logs
Mar 25 2019
#garfield Calendar
12:13 AM rue_mohr: I can use timer1, its 16 bits
12:18 AM rue_mohr: the problem stems from me needing counts up to 30720
12:57 AM rue_mohr: didn't work
07:10 PM zhanx: Tom_L, page 11, figure 19, https://journals.sagepub.com/doi/pdf/10.1177/1687814017721854
07:10 PM zhanx: how long do you think it would take to machine those parts
07:11 PM Tom_L: servo "u-joint"?
07:12 PM zhanx: yep
07:13 PM Tom_L: oh wait.. i wasn't looking at fig19
07:13 PM zhanx: its dual servo geared u-join
07:13 PM Tom_L: those might not be as bad as fig 2
07:14 PM zhanx: they look like you can water jet them
07:14 PM Tom_L: probably
07:14 PM Tom_L: the cross holes are splined
07:15 PM Tom_L: err maybe they're not
07:15 PM Tom_L: i'm not seeing straight tonight... tired
07:15 PM zhanx: i am gonna mock up something i think to print and check it out
07:16 PM Tom_L: if you want me to look at it don't give me a stl file :_)
07:16 PM zhanx: what format for you
07:17 PM Tom_L: catia of course :D
07:17 PM Tom_L: iges or dxf
07:17 PM Tom_L: dxf would be a flat file
07:17 PM zhanx: i can do dxf
07:17 PM Tom_L: i figured
07:18 PM Tom_L: stl are horrible in cad cam
07:18 PM Tom_L: i can make the dxf 3d i think given the thickness
07:19 PM Tom_L: what's the prong on the end for?
07:19 PM zhanx: OFF, AMF, SVG, CSG are my other opitions
07:19 PM zhanx: to connect to the next piece
07:19 PM Tom_L: none of those ring a bell with me
07:20 PM zhanx: Scalable Vector Graphics
07:20 PM Tom_L: if you wanted to wade thru sw i've got an old old install
07:20 PM zhanx: Object File Forma
07:21 PM zhanx: i don't have a windows box
07:21 PM Tom_L: oh
07:29 PM Tom_L: you'd almost be ahead finding some tubing and adapting it
07:48 PM zhanx: be easy to 3d print it and insert it into a tube
09:03 PM rue_mohr: heya
09:04 PM zhanx: hey
09:05 PM rue_mohr: your gonna do the snake eh?
09:06 PM zhanx: seriously thinking about it
09:06 PM rue_mohr: odd they didn't merge the gear and the fork
09:07 PM Tom_L: so
09:07 PM zhanx: odd also the ring is not geared
09:07 PM Tom_L: what's the difference between 'yield' and 'return' in python?
09:07 PM Tom_L: aparently the new version uses yield
09:07 PM rue_mohr: yield just pases off to the thread controller doesn't it?
09:07 PM Tom_L: don't ask me
09:07 PM Tom_L: i know nothing about python
09:08 PM zhanx: https://www.geeksforgeeks.org/use-yield-keyword-instead-return-keyword-python/
09:08 PM Tom_L: they changed all the returns to yield in this code
09:08 PM rue_mohr: aka return leaves the function, yield passes back to the thread controller to give everyone else a turn
09:08 PM zhanx: i was gonna type t but that is easier, yield returns more than one thing
09:11 PM Tom_L: rue_mohr what would be the reasoning in changing the code from 'return' to 'yield'?
09:11 PM rue_mohr: https://pythontips.com/2013/09/29/the-python-yield-keyword-explained/
09:11 PM rue_mohr: oh crazy
09:12 PM Tom_L: in this particular instance, it on a tool change it causes the prior tools to be called instead of the one requested
09:13 PM Tom_L: but they probably did that in order to be able to support multiple spindles
09:13 PM rue_mohr: so
09:13 PM rue_mohr: ouch my head
09:14 PM * Tom_L gives rue_mohr an OSHA approved safety helmet
09:14 PM rue_mohr: imagine you want to do the operation of a loop, but instead of it being a loop, you want to make it successive function calls
09:15 PM rue_mohr: instead of writing it properly in a successive call function, you do that and use yield for the results
09:15 PM Tom_L: i bet that's why the did it
09:15 PM Tom_L: they*
09:15 PM Tom_L: but it broke single spindle functionality
09:16 PM rue_mohr: tho, it looks like it lets them do a bunch of other pretty funkey things
09:16 PM Tom_L: at least when you want to start in the middle of a gcode file
09:20 PM Tom_L: https://github.com/LinuxCNC/linuxcnc/blob/master/nc_files/remap_lib/python-stdglue/stdglue.py
09:20 PM Tom_L: seems all the returns were changed in the new file
09:20 PM Tom_L: that must be the 2.7 file
09:25 PM Tom_L: no, look under remap=M6
09:32 PM rue_mohr: ickg its all OOP
09:33 PM rue_mohr: I'm completely engulfed in why my motor speed code didn't work
09:33 PM Tom_L: the change_epilog section has them changed
09:34 PM Tom_L: and i bet they did that for multiple spindle support
09:34 PM Tom_L: but it broke mine
09:34 PM Tom_L: just the 'run from line' command
09:34 PM Tom_L: it still works but calls the previous tools then the one i want
09:35 PM Tom_L: and tell me why this damn mouse works on the table but not on the mousepad!!!
09:40 PM Tom_L: hmm. repsnapper reprap control software
10:03 PM rue_mohr: ok, at 8 bits, my code can go down to 20rpm
10:05 PM rue_mohr: the 16 bit code should be able to go down to 0 easily
10:08 PM rue_mohr: 20 is ok, if I can get the system to drop to 20 with no signal
10:11 PM rue_mohr: oh idea