What did you mod today?

I’ll have to take one next time I’m in the garage.

Wow! I watched some of the vid but not sure of your Java script problem. I haven't done much in Java, yet alone Java scripting. I've done some mods but never full development. Java scripting though is usually easier/simpler than the full implementation. I work in C# every day and Java and C# have a lot in common, least the language but the package/support stuff is vastly different.

Good video, I need one of those :slight_smile:

Very nice W, big time. The stuff dreams are made of… so, now, if you could only … (where to start)

LH351D would be my best bet too.

[quote=Tom E]

I apologize in advance but does C stand for Chinese? :stuck_out_tongue:

C followed B of course! Actually, B and BCPL were predecessors to the C language, as defined in the gospel of C: the K&R book, or the Book of K&R, and written by the prophets.

Yeah, yeah, I know... 40 years in programming and you would be a little off the wall too

Thanks Tom E. It is all Chinese. :slight_smile: Happy Xmas buddy.

Thanks for the direction guys, looks like that X5 did indeed have a Samsung LH351D emitter, when I diced the sides off it removed the wavy look that identifies it for me.

I replaced it with a Black Flat and it makes 95.75Kcd in the little aspheric X5. :smiley: (AHorton aspheric, Bistro through a 14500)

Tom, I’ll start a new (OFF TOPIC) thread asking the Java question. Here’s a teaser.

case “tapping”:
F = tool.getThreadPitch() * rpmFormat.getResultingValue(spindleSpeed);
if (properties.useRigidTapping != “no”) {
writeBlock(mFormat.format(29), sOutput.format(spindleSpeed));
}
writeBlock(
gRetractModal.format(98), gAbsIncModal.format(90), gCycleModal.format((tool.type == TOOL_TAP_LEFT_HAND) ? 74 : 88),
getCommonCycle(x, y, z, cycle.retract),
“P” + secFormat.format(P),
feedOutput.format(F)
);

Yikes!

Should look like this in regular code format:

case "tapping":
   F = tool.getThreadPitch() * rpmFormat.getResultingValue(spindleSpeed);
   if (properties.useRigidTapping != "no")
   {
      writeBlock(mFormat.format(29), sOutput.format(spindleSpeed));
   }
   writeBlock(
         gRetractModal.format(98),
         gAbsIncModal.format(90),
         gCycleModal.format((tool.type == TOOL_TAP_LEFT_HAND) ? 74 : 88),
         getCommonCycle(x, y, z, cycle.retract), "P" + secFormat.format(P),
         feedOutput.format(F)
   );

Interesting, unfortunately I'm not so adept in machinery lingo. I suppose the writeBlock() guy is sending the commands/data out to the machine, but some of those codes they use like 28, 98, 90, etc. I have no clue about.

I need F to equal thread pitch. Not thread pitch * RPM

The numbered codes are g-code numbers. The machines use them directly.

The whole thing is a string substitution / variable mash that I can’t quite figure out.

Ok, then just change the F line to:

 F = tool.getThreadPitch();

All statements must end in semi-colon, that's why I'm leaving it there.

That expression, in case you are confused about, for gCycleModal:

 gCycleModal.format((tool.type == TOOL_TAP_LEFT_HAND) ? 74 : 88)

All it means is:

if (tool.type == TOOL_TAP_LEFT_HAND)
  gCycleModal.format(74);
else
  gCycleModal.format(88);

The "?" and ":" represents an "if then" and "else".

Couple wee lights finished recently.

CRX DQG Ti XP-L HD v6 3D - FET 15 - 14250 - Rv Clicky Sw - 750lm. Keyring Flashlight.Titanium body (can use 14500 cell with extra extension piece)
Cree XP-L HD v6 3D on DTP MCPCB
Mule
MTN FET 15+1 driver (GuppyDrv3)
Reverse clicky tail switch
Green GITD bezel
Hand made copper pill & switch enclosures

Length - 52mm
Width - 17mm
Weight - 31g (with 14250 cell)
Max - 750lm OTF

.

Maratac CR123 Rev3 - Triple Nichia 219B SW45K - LD-A4 3A - 16340 - Lighted Rv Clicky Tail Sw - 600lm.Triple Nichia 219B SW45K on 18mm L4P DTP MCPCB
L4P LD-A4 3A driver
10507 Carclo optic
Green GITD glow disc
ARC glass
Copper lined aluminium pill/ heatsink
Hand made copper switch enclosure
ILC-0 reverse clicky green lighted tail switch
Lockout-able
Length – 70mm
Width – 22mm
Weight – 104g (with 16340 cell)
Max - 600lm OTF (3A)

Come on, isn’t there really nobody here who says:

Hrrmpf, I luv it when you talk dirty?

Nothing else needed modding, just waiting for PostNL.
Used a whetstone, a piece of 1000 paper, a small round file, an ounce of elbow grease and almost 2 hours
to turn a 98% copper Canadian penny into a C8-sized shim. (To rule is to think ahead :weary: ).

I started a thread in General Discussion.

Bucket, I’d be interested in buying one of those set-ups for the Streamlight for my neighbor. He retired from the Police Department but still does work on special events, ball games, traffic events, funeral processions, that sort of thing. He was among the first to have the rechargeable Streamlight on our Police Force and loves his. I think I’ve modded it for him before but your kit would certainly make it more professional and with the blue stripe, he’d absolutely love it! Give me a shout and let me know what can be worked out please… :slight_smile:

I’ll PM you.

Dangit! I forgot to take a pic of my single point thread mill for oresome.