#robotics Logs
Dec 06 2018
#robotics Calendar
07:01 AM Guest69075 is now known as dravine
09:21 AM elektrinis: hi
09:21 AM elektrinis: I'm into ebikes and esk8, but there seems to be no channels on freenode??
09:41 AM deshipu: why would there be?
09:41 AM deshipu: I don't think there are any open source ebikes
12:47 PM veverak: https://www.aliexpress.com/item/RC-Metal-Tank-Chassis-4wd-Robot-Crawler-Tracked-Caterpillar-Track-4-driving-wheels-Chain-Car-Vehicle/32607057344.html
12:47 PM veverak: I wonder how well this behaves
08:32 PM rue_mohr: https://www.nutsvolts.com/uploads/wygwam/NV_0100_Marston_fig15.jpg
09:09 PM rue_mohr: hmm how to add a callback to a child object...
09:09 PM rue_mohr: https://www.x.org/releases/X11R7.5/doc/man/man3/XtAddCallback.3.html
09:09 PM rue_mohr: this looksl ike a direction
09:15 PM rue_mohr: hmm no
09:16 PM rue_mohr: I need to add a callback name
09:35 PM Tom_L: rue_mohr_jr?
09:36 PM rue_mohr: no
09:37 PM rue_mohr: child is a term for a heirarchy
09:37 PM rue_mohr: but its looking like the process of registering a property that is a callback adds it to the callback list
09:40 PM rue_mohr: if thats right
09:40 PM rue_mohr: I can do this....
09:45 PM rue_mohr: ok I created a property, but not a new callback
09:50 PM rue_mohr: oh hello
09:54 PM rue_mohr: static XtActionsRec actionsList[]
09:54 PM rue_mohr: oh, its registered with the core class
09:55 PM rue_mohr: /* actions */ NULL,
09:55 PM rue_mohr: /* num_actions */ 0,
09:55 PM rue_mohr: hmmm
10:01 PM rue_mohr: but
10:34 PM rue_mohr: aha
10:34 PM rue_mohr: one mechanism sets the callback and another triggers it
10:34 PM rue_mohr: but there are two ways to set it
10:35 PM rue_mohr: one way wont work if its not in the widgets action list
10:40 PM rue_mohr: there are two different branches here
10:41 PM rue_mohr: the action list defines the default callbacks
10:42 PM rue_mohr: they can be added to
10:42 PM rue_mohr: but what makes them exist in the first place
10:43 PM rue_mohr: there ust be another function
10:44 PM rue_mohr: XtAppAddActions (app, &actions, 1);
10:44 PM rue_mohr: k, wait, I need to think about this
10:44 PM rue_mohr: I can take an X event and tie it to an action
10:44 PM rue_mohr: and then tie a procedure to an action
10:45 PM rue_mohr: which isn't a callback?
10:45 PM rue_mohr: actions are registered
10:46 PM rue_mohr: so that table isn't the final word
10:47 PM rue_mohr: so my problem then comes back to creating an event translation
10:57 PM rue_mohr: wait, I dont need an X event to bind to this
10:57 PM rue_mohr: I just need to give it soemthing it wont complain about
10:57 PM rue_mohr: which is why if I bind it to an obsurd key sequence, i'm ok, I'll be manually triggering it anyhow
11:19 PM rue_mohr: motif only knows button and key events
11:19 PM rue_mohr: ... just wow
11:19 PM rue_mohr: and there is no generic handle
11:36 PM rue_mohr: hmm a tiny13 with code to do a zero-crossing, sinusoidally compensated, sinewave chopper might be nice
11:46 PM rue_mohr: I suppose what I'm really wrestling with here is that motif cannot do what I want for this app
11:46 PM rue_mohr: which is insane
11:46 PM rue_mohr: but explains why so many people set out to write their own interfaces
11:47 PM rue_mohr: the picture LOOKS like
11:48 PM rue_mohr: as each child is added to my manager widget, I need to register an event handler to it for PropertyChange or really anything that will never happen
11:48 PM rue_mohr: then I can add a translation table from that to an action
11:49 PM rue_mohr: but
11:49 PM rue_mohr: something still doesn't add up
11:49 PM rue_mohr: I'm having issues seeig the whole picture
11:49 PM rue_mohr: I'm sure I can insert a fake in here somewhere
11:50 PM rue_mohr: I think there is an event called None
11:50 PM rue_mohr: I dont know if it ever happens
11:54 PM rue_mohr: Warning: ... found while parsing '<None>: nothing() '
11:54 PM rue_mohr: Warning: String to TranslationTable conversion encountered errors
11:54 PM rue_mohr: damnit
11:57 PM rue_mohr: damn, its a modifier not an event