Jump to content

Cosmik42

Eurobricks Citizen
  • Posts

    267
  • Joined

  • Last visited

Everything posted by Cosmik42

  1. Are they both Train Hubs BTW? Just to clarify => Do you see any distance output in the console on the faulty Hub? Because if so - then it's my software that has an issue.
  2. 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.
  3. That's what I was looking for! Thanks!
  4. 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
  5. 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 :)
  6. @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!
  7. Great idea! Share with us a video implementation if you can!
  8. Anti-Collision => Will make it optional. Your own program => You can rename it if you click on the tab. First field on the left. Maybe!
  9. Thank you so much for trying. I really need to find this hardware. Though I am not sure the usage for a train scenario.
  10. Make sure to unpair the device with windows by removing your SBrick from your paired list. Let me know if this fixes your problem! @Toastie, @Lok24, noted. Will prepare something.
  11. 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.
  12. 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!
  13. Does anyone has a PF tilt sensor and SBrick Plus? If so, could you tell me if the sensor works and if the output makes sense? (I don't own a tilt sensor).
  14. 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.
  15. But what is the usage scenario? Oh I think I get it. During convention if others are turning on their Hubs and we pick it up? I think I have an idea on how to manage this elegantly.
  16. I think this works well for you, but it is also less user friendly and requires a lot more tech knowledge.
  17. 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
  18. Oh this was extremely useful! It looks like you have some weird bluetooth device around you. I just added an extra test to avoid this log. I will share a new version later tonight!
  19. Do not worry! Your videos are fullfiling to watch :)
  20. 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!
  21. Thank you for the kind words and happy to read the software works for you! This error means that at some point the program tried to access an object that wasn't initialized. Can you give me more context as of when this pops up? Finally, thank you for the donation!
  22. 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();
×
×
  • Create New...