#robotics Logs

Nov 24 2018

#robotics Calendar

12:26 AM z64555: whats this about ships?
01:15 AM Jak_o_Shadows: are we talking actual space?
01:18 AM rue_mohr: as legit as i could
01:18 AM rue_mohr: doesn't mean I ahve to go anywhere
01:18 AM rue_mohr: I claim insufficent fuel funds :)
01:19 AM rue_mohr: I think the vessel requirements are that you have a fire alarm system, exit lighting, and some kinda nav lights
01:20 AM rue_mohr: tho I'd like to see someone cough up the nav light requirements for a spaceship
01:20 AM rue_mohr: THAT would be entertaining
01:21 AM rue_mohr: "you need..." rue_mohr crosses his arms and listens.....
01:33 AM rue_mohr: hahahahahah it works!!!!!
01:34 AM rue_mohr: ok, now I just have to make it do what I want
01:34 AM rue_mohr: and fix... everything else
02:26 AM Jak_o_Shadows: I dunno if it's nav lights
02:26 AM Jak_o_Shadows: but i've heard that it could be a little retro-reflector patch
02:26 AM Jak_o_Shadows: but a retro-reflector patch that encodes information in it as you go
02:26 AM Jak_o_Shadows: so you can identify spacecrafrt
02:27 AM rue_mohr: hmm
02:28 AM rue_mohr: like a return survey mirror?
02:28 AM Jak_o_Shadows: yeah
02:28 AM rue_mohr: cool
02:28 AM rue_mohr: "Beam me Scotty!"
02:28 AM rue_mohr: "OUCH!?!??!?! NO!...."
02:29 AM Jak_o_Shadows: oh, sorry, it's a laser on the sat
02:29 AM Jak_o_Shadows: at a very specific frequency
02:29 AM rue_mohr: sattalite, spaceship, whatever
02:40 AM rue_mohr: OH GOD SOME PEO;LES CODE DRIVES ME CRAZY
02:41 AM rue_mohr: so, in function one, we have...
02:41 AM rue_mohr: preferred->width += child->core.width + child->core.border_width * 2;
02:41 AM rue_mohr:
02:41 AM rue_mohr: if( preferred->height < child->core.height + child->core.border_width * 2)
02:41 AM rue_mohr: preferred->height = child->core.height + child->core.border_width * 2;
02:41 AM rue_mohr:
02:41 AM rue_mohr: and in function two, we have...
02:41 AM rue_mohr: layoutHeight = MAX(layoutHeight, (child->core.height + (child->core.border_width * 2)));
02:41 AM rue_mohr: layoutWidth += (child->core.width + (child->core.border_width * 2));
02:41 AM rue_mohr: LIKE CMON ALREADY
02:43 AM rue_mohr: and should I note that in the book some_of_the_vars_are_like_this someofthemlikethis and someOfThemLikeThis????
02:44 AM rue_mohr: no reasoning either, its just random
02:49 AM Jak_o_Shadows: hmm. Gate to source voltage of 16
02:49 AM Jak_o_Shadows: when I have a, uhm, 5V gate
02:50 AM rue_mohr: :S
02:50 AM Jak_o_Shadows: huh. Those mosfets are outside their datasheet range
02:50 AM Jak_o_Shadows: ah, doesn't breakdown till 55V
02:50 AM rue_mohr: sounds like you have a really low drain-gate resistance on that particular one
02:50 AM rue_mohr: ah
02:50 AM Jak_o_Shadows: IRLZ44n
02:51 AM rue_mohr: mmm L
02:51 AM rue_mohr: like that
02:51 AM Jak_o_Shadows: Yeah, she'll be right I think
02:51 AM Jak_o_Shadows: This set of lights is AC, with a transformer
02:51 AM Jak_o_Shadows: so I need to rectify it
02:52 AM rue_mohr: same code over and over
02:52 AM rue_mohr: each time done differently
02:54 AM Jak_o_Shadows: Now, I have some KBPC1010 bridge rectifiers, and some KBC307's
02:55 AM Jak_o_Shadows: The 1010's are overkill I think
02:55 AM rue_mohr: 300v vs 1000v
02:55 AM rue_mohr: 7A vs 10A
02:55 AM rue_mohr: ?
02:56 AM Jak_o_Shadows: Yeah, so I have a 32V christmas lights controller
02:56 AM Jak_o_Shadows: says 30VA, 24V output (maybe under load it is...)
02:57 AM rue_mohr: zippo:/files/programming/c/motif/GridMan# calc 24*1.4
02:57 AM rue_mohr: 24*1.4 -->> 33.6
02:57 AM Jak_o_Shadows: ah.
02:58 AM Jak_o_Shadows: well, the 307's will do
02:58 AM rue_mohr: so you might have 1.6V ripple
02:58 AM rue_mohr: or a non-ideal input voltage :)
02:58 AM Jak_o_Shadows: Somehow, I don't think the christmas lights will care
02:58 AM Jak_o_Shadows: I'm only rectifying so I can switch it with the mosfet
02:59 AM rue_mohr: more efficient to use a doubling rectifier
02:59 AM rue_mohr: 2 diode, 2 cap
02:59 AM flav0r: i was erroneously sent some inductors a couple months back when i ordered diodes
02:59 AM rue_mohr: up ~2V from diode loss
02:59 AM rue_mohr: but then 12V trasformer
02:59 AM flav0r: so now i have 100 x 2.2uH inductors
02:59 AM flav0r: wtf
03:00 AM Jak_o_Shadows: erm, doublign rectifier?
03:00 AM rue_mohr: mhm, replace two of the diodes with capacitors
03:00 AM rue_mohr: normally you have
03:00 AM rue_mohr: --------+
03:01 AM rue_mohr: ^ ^
03:01 AM rue_mohr: ^ ^
03:01 AM rue_mohr: -------- -
03:01 AM rue_mohr: with the tx in the tap between the diodes
03:01 AM rue_mohr: doubling is
03:01 AM rue_mohr: --------+
03:01 AM rue_mohr: ^ =
03:01 AM rue_mohr: ^ =
03:01 AM rue_mohr: --------- -
03:01 AM rue_mohr: no diode losses on the right leg
03:02 AM rue_mohr: and you get filtered dc automatically
03:02 AM rue_mohr: now you know
03:03 AM Jak_o_Shadows: Normal electrolytic caps?
03:04 AM rue_mohr: yes
03:04 AM rue_mohr: unless your input is ~10Mhz
03:04 AM rue_mohr: in which case use other capacitors;
03:06 AM flav0r: dude you gotta get yourself some low ESR caps
03:06 AM flav0r: then youll be set !
03:07 AM rue_mohr: tahts easy, its the low inductance leads that are the hard part
03:09 AM Jak_o_Shadows: well, the little rectifier boardd I had only had a 24V cap
03:09 AM Jak_o_Shadows: that went bang, in a loud way
03:09 AM flav0r: i need to find caps from china that are the same spec as the ones i got from mouser
03:10 AM flav0r: could take a long time !
03:10 AM Jak_o_Shadows: tbh, i don't think i'm even gonna filter it at all
03:10 AM Jak_o_Shadows: I don't think there's any need
03:41 AM rue_mohr: less flicker
03:41 AM Jak_o_Shadows: I think the term is "twinkle" when it's christmas lights
03:41 AM Jak_o_Shadows: :P
08:00 AM lawsd: what are some good robotic development kits today?
08:19 AM deshipu: nao?
08:20 AM deshipu: I like the sunfounder quadruped
09:17 AM SpeedEvil: I like the aliexpress.com kit
09:17 AM SpeedEvil: just get twenty of everything, and you're set.
10:52 AM rue_bed: its getting hard to find packs of 10
10:52 AM elektirnis: hi
10:52 AM rue_bed: the trend is 5 or 100
10:52 AM rue_bed: elektirnis, hi
10:52 AM elektirnis: long time no see
10:53 AM rue_bed: no I was Cing just last night
10:53 AM elektirnis: if some of you are using big RC motors, here's one: https://hobbyking.com/en_us/turnigy-rotomax-150cc-size-brushless-outrunner-motor.html?affiliate_code=PMQJUMLDAOFSFEL&_asc=718159022
10:53 AM elektirnis: bought it couple months back, best motor I had so far
10:53 AM elektirnis: perfectly balanced and smooth running
10:53 AM rue_bed: the brushless have that min. speed thing
10:53 AM elektirnis: Used it for an ebike
10:53 AM rue_bed: I'v really noticed it with the new drill
10:54 AM elektirnis: today is a -50% discount
10:54 AM elektirnis: trank me later :)
10:54 AM rue_bed: heh, except they changed the price first
10:54 AM elektirnis: no, I bought it for 430 EUR
10:54 AM rue_bed: oh hbbyking, its clearance then
10:54 AM elektirnis: today is 207€...
10:55 AM rue_bed: wow $450, eek
10:57 AM elektirnis: I bought a predecessor turnigy CA-20
10:57 AM elektirnis: https://www.youtube.com/watch?v=Gl4X1dRAdQQ
10:57 AM elektirnis: 7 years back...
10:57 AM elektirnis: similar size and power, but very difficult to drive due to low inductance
12:27 PM SpeedEvil is now known as Guest29775
12:58 PM BitEvil is now known as SpeedEvil
01:06 PM logicmoo is now known as dmiles
02:10 PM rue_shop3: maybe if each strap pulls into the centre
02:29 PM rue_mohr: one of the couplers (backings) between the pipes... vanished
02:29 PM rue_mohr: dispite being tacked in, its managed to come loose and move down into the pipe
02:29 PM rue_mohr: snagged it, but WTF!
06:02 PM rue_mohr: huh, so you pull out the values
06:04 PM Tom_L: what valves?
06:04 PM rue_mohr: I'm trying to work out how they set values of a child object that doesn't have those values
06:04 PM rue_mohr: its part of the broken gui model here
06:05 PM * Tom_L re'adjusts his spectacles
06:05 PM Tom_L: inheritance
06:06 PM rue_mohr: well, no, they dont tho
06:06 PM Tom_L: so they got left out of the will?
06:06 PM rue_mohr: you would expect that you create a class inherited from what you want with the extra attributes you want added onto it
06:06 PM Tom_L: i never got into that muc
06:07 PM Tom_L: but i get the idea
06:07 PM rue_mohr: it looks like they have 1 instance of the params for all children, when the gui changes any of the values, it calls a 'check_it' function, that I think copies the values to its own variables
06:07 PM rue_mohr: this is deeper than anyone goes
06:08 PM rue_mohr: I'm so far beyond google
06:08 PM rue_mohr: its SCARRY
06:08 PM Tom_L: don't tell google that, they'll come raid you
06:08 PM rue_mohr: I have a book that they have none of the contents of
06:08 PM rue_mohr: and most of its source code
06:09 PM Tom_L: i got a piece of pumpin pie they're not gonna get their hands on either
06:09 PM rue_mohr: maybe I'm wrong about hwo thye do this, I'm not seeing the code I'd expect
06:10 PM Tom_L: when was it written may be a clue
06:13 PM rue_mohr: it keeps leading me on tom
06:13 PM rue_mohr: "cmon, just one more mile"
06:13 PM rue_mohr: I'm about to fall for the 3rd mile
06:13 PM rue_mohr: call me a fool?
06:15 PM Tom_L: is it like playing doom?
06:15 PM rue_mohr: you mean the pit at the end?
06:16 PM Tom_L: heh
06:16 PM rue_mohr: maybe I'm not there yet
06:30 PM rue_mohr: wait
06:30 PM rue_mohr: my target is only a half mile away
06:30 PM rue_mohr: if I take the 3rd mile, I'll have to go back another half mile to get to where I want
06:31 PM * rue_mohr puts on a machette and looks down the last mile
06:38 PM rue_mohr: uh, hmm, from what I can tell, the class their importing does, literally, nothing
06:40 PM rue_mohr: oh I tried to make the big ring round today
06:40 PM rue_mohr: something is wrong
06:40 PM rue_mohr: and, a backing coupler somehow went awal
06:40 PM rue_mohr: awol?
06:40 PM rue_mohr: anyhow
06:49 PM Tom_L: stress built up in the ring when you bent it?
06:52 PM rue_mohr: it might ahve happened when i was smoking it with a hammer :D
06:53 PM Tom_L: a hammer isn't very round
06:54 PM rue_mohr: I have to worry when a ratchet strap is dialed up enough to pluck a guitar open G on
06:54 PM rue_mohr: *sing* :S
06:54 PM rue_mohr: er
06:54 PM rue_mohr: *ding* :S
06:55 PM Tom_L: just touch the edge of it with a knife blade
06:56 PM rue_mohr: there is something wrong, I cut a board to what should be the ID
06:56 PM rue_mohr: but it wouldn't even out
06:56 PM rue_mohr: I think I missed the length, I need to check all the numbers again
06:56 PM rue_mohr: but I have to fix the backing coupler first
06:57 PM rue_mohr: I took out the tack weld, and was able to fish it to the edge of the pipe, but its hung, I needed a tool to pull it out, and I gave up for the day
06:58 PM Tom_L: allthread with a nut on the end to hook it
06:59 PM rue_mohr: sounds good
06:59 PM rue_mohr: maybe trap a washer for a sharper edge
06:59 PM Tom_L: yeah that's what i was typing as you said it
07:00 PM Tom_L: one of those conical washers would be even better
07:01 PM rue_mohr: I dont even know if it'll fight
07:01 PM rue_mohr: it was tacked in, I have no idea how it came loose
07:01 PM rue_mohr: it sholdn't have been possible
07:21 PM rue_mohr: ah, class vs instance functions
07:21 PM rue_mohr: the layout manager hook is part of the class, not the instance
07:21 PM Tom_L: he should be fired
07:21 PM rue_mohr: so, when handed an instance I cant access it
07:27 PM rue_mohr: oh magic
07:27 PM rue_mohr: its C
07:28 PM rue_mohr: there is only 1 instance of the class object I'm using, and i have direct access to it
08:03 PM rue_mohr: aha
08:07 PM rue_mohr: they inherited a huge mess so they could manage multiple constaints on a single widget
08:07 PM rue_mohr: ok
08:10 PM rue_mohr: oh look, after 20 feet on that mile path, I found a rail car I can use to get the rest of the way
08:11 PM rue_mohr: *squeek* *squeek* *squeek*
08:11 PM rue_mohr: *tick* *tick* *tick* *tick* *tick* *tick*...
08:12 PM rue_mohr: *crunch*
08:12 PM rue_mohr: er, wehre did the track go??
08:12 PM rue_mohr: oops, I went too far...
08:14 PM rue_mohr: something is missing...
08:17 PM rue_mohr: I didn't go too far, there is another track off to the side
08:17 PM rue_mohr: these tracks should meet up tho
08:17 PM rue_mohr: wtf
08:17 PM rue_mohr: their running parallel
08:19 PM rue_mohr: wait a min, this track is a different guage...
08:29 PM rue_mohr: aha
08:29 PM rue_mohr: a crane
08:29 PM rue_mohr: curious
08:37 PM rue_mohr: ok
08:37 PM rue_mohr: so I have , lets say a circle in a wide rectangle
08:37 PM rue_mohr: I want to specify its justification
08:38 PM rue_mohr: text in a textbox if you want
08:38 PM rue_mohr: so, method 1, says I have a flag that says "align_left" "align_center" or "align_right"
08:39 PM rue_mohr: method 2, says I have an offset , + numbers align from the left, - numbers align from the right
08:39 PM rue_mohr: and its broken, because how to you centre?
08:40 PM rue_mohr: with another flag?
08:40 PM rue_mohr: ok , no takers
08:40 PM rue_mohr: rue?
08:40 PM rue_mohr: hmm, ...
08:41 PM rue_mohr: how about you make offset only valid + and use the left/right/center flag
08:41 PM rue_mohr: or
08:42 PM rue_mohr: how about you use left_pixels right_pixels centre left_percent.....
08:42 PM rue_mohr: maybe centring should just be a thing
08:42 PM rue_mohr: ok, so we have +- values for off-centre?
08:42 PM rue_mohr: sure
08:43 PM rue_mohr: ok, so we have a pixels/percent flag
08:43 PM rue_mohr: we have a left/centre/right flag
08:43 PM rue_mohr: and an offset value
08:43 PM rue_mohr: yes, I think thats as complicated as you can make it
08:48 PM rue_mohr: ok, how the hell do I get X to set a value in someone else objec
08:48 PM rue_mohr: t
08:49 PM rue_mohr: you could just inherite the stuff thats meant to do this
08:49 PM rue_mohr: and it does WHAT exactly?
08:49 PM rue_mohr: ^^
08:49 PM rue_mohr: I'm not sold
08:51 PM rue_mohr: it looks to me like the whole object looks to the parent to set the constraints pointer up
08:51 PM rue_mohr: and why can I just do that
08:52 PM rue_mohr: actaully with insertchild I dont see why you cant
09:01 PM rue_mohr: If the parent is a subclass of constraintWidgetClass, it initializes the resource fields of the constraints record by using the constraint resource list specified for the parent's class and all superclasses up to constraintWidgetClass.
09:15 PM Tom_L: u 2 making progress?
09:21 PM rue_mohr: just hit another snag
09:21 PM rue_mohr: I want to call the parent handler, but it wont let me specify that how I did
09:24 PM rue_mohr: void _XtInherit(
09:24 PM rue_mohr: void
09:24 PM rue_mohr: );
09:24 PM rue_mohr: the bastards
09:24 PM rue_mohr: wait, no
09:24 PM rue_mohr: thats the prototype
09:25 PM rue_mohr: no, its got to be a dummy function
09:26 PM rue_mohr: no its at a different address
09:30 PM rue_mohr: hahah its C and im having the issue I hate with oop
09:34 PM OpenSorc_ is now known as OpenSorceress
09:54 PM rue_mohr: YES
09:54 PM rue_mohr: that was painfull
09:54 PM rue_mohr: am I moving forward yet?
09:55 PM rue_mohr: the amount of compiler manipulation in this is crazy
10:03 PM rue_mohr: ok, I can attach memory to a child
10:03 PM rue_mohr: so the next question is when.... hmm
10:03 PM rue_mohr: there might be more to it
10:04 PM rue_mohr: If the parent is a subclass of constraintWidgetClass, it initializes the resource fields of the constraints record by using the constraint resource list specified for the parent's class and all superclasses up to constraintWidgetClass.
10:05 PM rue_mohr: I wonder what happens first, the call that I'm having a new child added, or the setting of the params for it
10:05 PM rue_mohr: I dont think this trail I'm following is a trail
10:05 PM rue_mohr: anymore
10:06 PM * rue_mohr backs up
10:07 PM rue_mohr: thats probably the difference then
10:08 PM rue_mohr: the child objects are looking to see if their being added to a constraint widget, and if they are, they extend the argument settings to that of the parent widget
10:14 PM rue_mohr: ok, I give, I'll add the stupid class
10:22 PM Tom_L: are you moving forward in a squirrel cage that goes nowhere?
10:24 PM rue_mohr: OH THAT EXPLAINS THE TREE THAT KEEPS GOING BY!!!
10:24 PM rue_mohr: I'm making progress, but its... painfull
11:10 PM rue_mohr: aha!
11:10 PM rue_mohr: ok, its allocating the memory now
11:17 PM rue_mohr: yay the values are working
11:18 PM rue_mohr: ok, so, thats like 4 hours to work out how to get XtVaCreateManagedWidget (buttons[i],
11:18 PM rue_mohr: xmPushButtonWidgetClass, bboard,
11:18 PM rue_mohr: RmNjustification, XmALIGNMENT_END,
11:18 PM rue_mohr: NULL);
11:18 PM rue_mohr: to set typedef struct _RmGridManChildAttrRec {
11:18 PM rue_mohr: Dimension offset; // value for offset
11:18 PM rue_mohr: unsigned char offsetType; // RmPIXELS, RmPERCENT
11:18 PM rue_mohr: unsigned char alignment;
11:19 PM rue_mohr: aka RmNjustification causes unsigned char alignment to be set to XmALIGNMENT_END
11:20 PM rue_mohr: now to recurse back down
11:20 PM rue_mohr: what was I working on?
11:20 PM rue_mohr: oh yea, do_layout
11:30 PM rue_mohr: YES, ok, I'm rolling now