-
Posts
267 -
Joined
-
Last visited
Content Type
Profiles
Forums
Gallery
Everything posted by Cosmik42
-
It doesn't trigger at all? Never experienced that. What about putting only one sensor? Ah indeed! But because this is WeDo Tilt and not SBrick, it is not implemented at all. But I could try to program 'in the dark' and have you try the output. @Lok24 - I am going to add something. You will be able to pick which port you want an event to trigger with. That might help.
-
That's what I was looking for! Thanks!
-
They should! Can you show me how you setup your event? I don't own one, so it's not supported yet. Question: what usage scenario do you have in mind? I will try to find this hardware, but it's hard to invest in it when there is no clear usage. On my side, my wide and kids are away this weekend and i have been programming like a mad dog in order to achieve my ultimate goal with this program: Create a fully autonomous self-driving system for lego trains! V0.5 already managed the anti-collision part. So I have been working on the 'self-driving' part with automatic switch based on the destination that a train plans to go to! Here is my setup: I believe I should be done tonight after programming until 7am yesterday :D
-
Playing with these things all the time, I can tell you that some time not. It is unclear what triggers it, but I sometime have hubs who keep thinking they are connected, and it drives me crazy :)
-
@Mr Hobbles, do you know how to force an immediate disconnection from a Hub? I'd like to stop my software with a clean cut off of connections! Thanks!
-
Great idea! Share with us a video implementation if you can!
-
[MOC] Powered Boxcar (Power Functions)
Cosmik42 replied to Unfinished_Projects's topic in LEGO Train Tech
Very nice! -
Actually the best approach is the following : - Prepare your project at home in a normal way. Save it. This way the program knows your device id. - At convention, click a button in settings that says 'Attempt to connect only to devices from this project'. This way you don't even need to know what a bluetooth address is and the scenario is covered.
-
Thanks for both suggestions! I use PUP trains and managed to use the fast brake from @Mr Hobbles suggestion. Now I wonder how to build such braking system in Lego. Thanks for showing such real-life system!
-
Do you see similar crashing behavior with The Lego Train Project? I have tons of device and have never encountered a crashing of a Hub.
-
Really excited to share with you V0.5! Full support of SBrick Plus and PF Sensors. Introducting an Anti-Collision system that works with simple distance detectors Bug fix: Code was executed twice on sensor event Bug fix: Better handling of faulty device connection You can download the build here: https://www.dropbox.com/sh/4r7tbnbbvnevfhm/AADsny98v7uzdr0IU9mvvymqa?dl=1
-
Oh my!! Indeed, it was my bad. A piece of code left after a debug! For now yes. I will try to extend this during the weekend! That was my idea! But: Ok, I have changed the declaration which was wrong. All functions made this way should be static! So in the 'Global Code' section make sure to edit it to this: public static void MyGlobalFunction() { // Execute your code here } Thank you so much for the throughful testing! I will drop a new later today that fixes all these issues! This is beautiful! <3 @supertruper1988, absolutely!
-
It should not. How do you display the time when it's not through a trigger? It is possible this code triggered at the same time as the event itself? After many test putting a color detector under a train, only these 3 colors were reliably discovered. But given the video you show, you would be able to discover all other color when not using it in a train scenario. Simply write MyGlobalFunction();