#robotics Logs

Nov 28 2018

#robotics Calendar

12:00 AM rue_mohr: thats probably why I'm seeing so many stores trying to push things for a huge discount
12:04 AM rue_mohr: the whole market prolly ground to a halt
01:56 AM rue_mohr: SO CLOSE
01:57 AM rue_mohr: I had to re-arrange my layout widget to be inherited from the bullitenboard widget, it turns out that its the one responcible for all the widget focus stuff
01:57 AM rue_mohr: the only problem I seem to be left with is that there is some poo left behind in the redraw when I resize it
01:58 AM rue_mohr: which I think I know how to fix
01:58 AM rue_mohr: but the re-inheritance thing fixed my background colour issue too
01:58 AM rue_mohr: 500 lines of code to layout the gui objects properly
01:58 AM rue_mohr: :S
01:59 AM rue_mohr: iir cmy amin app isn't 500 lines
01:59 AM rue_mohr: iirc my main app isn't 500 lines
02:07 AM flav0r: hey hey !
02:17 AM rue_mohr: }:] getting closer....
02:18 AM flav0r: unbelievable !
02:59 AM rue_mohr: arg, to erase a widgets internal area
03:00 AM rue_mohr: I need a screen, display, window, and graphical_context, to which I have to set the colour
03:00 AM rue_mohr: so, its atleast 6 lines of code
03:05 AM rue_bed: then I can dump it into my app, and control the drill operations
03:05 AM rue_bed: then I can build an operation list
03:06 AM rue_bed: at some point I can have the program categorize the dxf entities by layer
03:06 AM rue_bed: how the hell did it get to 1am
03:08 AM rue_bed: damn network cord
03:08 AM rue_bed: how the hell did it get to 1am....
03:08 AM rue_bed: it was 11:43 last I looked
03:09 AM mrdata__ is now known as mrdata
03:13 AM rue_bed: I suppose I should set up the number fields so that I can tune the type a bit more,
03:13 AM rue_bed: signed, unsigned
03:13 AM rue_bed: float, int
03:14 AM rue_bed: not going into non-base10
03:16 AM rue_bed: need to get offsets working for widget positioning too
03:30 AM mrdata is now known as mrdata__
03:45 AM flav0r: now its 1:45 !
05:22 AM Tom_itx is now known as Tom_L
09:09 AM rue_mohr: it doesn't make sense that a GC has a foreground and a background, and that it only draws with the foreground
09:22 AM rue_mohr: this is my complaint last night
09:22 AM rue_mohr: XGCValues values;
09:22 AM rue_mohr: GC gc;
09:22 AM rue_mohr: Display* display;
09:22 AM rue_mohr: Colormap screen_colormap;
09:22 AM rue_mohr: XColor red;
09:22 AM rue_mohr:
09:22 AM rue_mohr: display = XtDisplay(w);
09:22 AM rue_mohr: screen_colormap = DefaultColormap(display, DefaultScreen(display));
09:22 AM rue_mohr: XAllocNamedColor(display, screen_colormap, "red", &red, &red);
09:22 AM rue_mohr: gc = XCreateGC(display, XtWindow(w), 0, &values);
09:22 AM rue_mohr: XSetForeground(display, gc, red.pixel);
09:22 AM rue_mohr: XFillRectangle(display, XtWindow(w), gc, 0, 0, w->core.width, w->core.height);
09:22 AM rue_mohr: all that code is required to draw a red rectangle
09:23 AM rue_mohr: haha, got it
01:59 PM prsstnt: hi, i have a 2d robot arm (simulated), the second joint has a range of -2pi to pi
01:59 PM prsstnt: why would this be?
01:59 PM prsstnt: the first joint has a sensible range of 0 - 2pi
01:59 PM prsstnt: (this is frmo a neural net)
02:01 PM prsstnt: pls halp
06:18 PM SpeedEvil: prsstnt: what?
06:18 PM SpeedEvil: Joints that can only rotate part of their rotation are entirely normal.
06:18 PM SpeedEvil: Look at your arms
06:44 PM rue_mohr: prsstnt,
06:45 PM rue_mohr: its probably set up so that the arm is in a reasonable configuration or posture when all the joints are set to 0
07:45 PM Tom_itx is now known as Tom_L
07:56 PM delinquentme: "Stepper motors will run better when the voltages is several times higher than their rated voltage." https://www.circuitspecialists.com/blog/stepper-motor-power-supplies/
07:56 PM delinquentme: why have a 'rated voltage' at all then?
07:57 PM rue_mohr: not sure why they do that
07:57 PM delinquentme: and this is a quote from someone who claims to be a 'Masters in Electrical Engineering from Stanford University'
07:57 PM rue_mohr: if they just spec'd the current, then its all said
07:57 PM Tom_L: because they use chopper drives now
07:57 PM rue_mohr: the word 'university' is bad
07:57 PM Tom_L: and you can get quicker response with them
07:58 PM rue_mohr: no, you use high voltage current regulated drivers
07:58 PM rue_mohr: with different modes for accelerating and deaccel
08:00 PM delinquentme: rue_mohr, I dont understand what you mean by 'if they just spec'd the current, then its all said'
08:00 PM rue_mohr: at the spec current the motor will dissipate a particular voltage and power level
08:01 PM rue_mohr: all you need to know is the current setting
08:01 PM rue_mohr: voltage driven mtoors are as current at 1980
08:01 PM rue_mohr: everything done well after that was current driven
08:02 PM rue_mohr: http://homepage.divms.uiowa.edu/~jones/step/
08:02 PM rue_mohr: that is like *the* document on driving stepper mtoors
08:03 PM rue_mohr: if your living in the 2000's you just buy a current controlled driver from china
08:03 PM rue_mohr: I could show you the board you end up with otherwise
08:04 PM rue_mohr: or a gecko drive if you have the $$$
08:11 PM rue_mohr: :) I hope I'm not right, looksl ike a container does what I want
08:11 PM rue_mohr: ed
08:11 PM rue_mohr: aka, what i just spent 2 weeks on
08:21 PM Tom_L: i'm surprised that is still online
08:23 PM rue_mohr: I know eh?
08:24 PM rue_mohr: its been ateast 18 years I'v known it
08:24 PM Tom_L: gawd i read that back when i was messin with pic
08:25 PM Tom_L: sad to admit it...
08:26 PM rue_mohr: ?
08:27 PM rue_mohr: ...omg....
08:27 PM rue_mohr: I think Qt is just the rewrite of motif
08:41 PM Tom_L: now you're figuring this out?
08:41 PM zhanx: not like he checked the forks before this
09:26 PM rue_mohr: hmm
09:26 PM rue_mohr: no I mean Qt being fromt eh same organization that authors motif
09:27 PM rue_mohr: to the point they have a page "how to port your program to qt"
09:28 PM rue_mohr: ok there is no "container"
09:28 PM rue_mohr: but I know there is a container class, which doesn't specficialyl do anything
10:36 PM rue_mohr: ok, this is actaully working out
10:36 PM rue_mohr: I'm where I want to be
11:44 PM rue_mohr: ok, managed to set it up with some slidable dividers that I can use to move things around and poke in the new stuff