Anzeige

Welcome, Guest
Username: Password: Remember me

TOPIC: Ideas for new features in 2.2.x

Ideas for new features in 2.2.x 28 Mar 2010 11:16 #1

  • Arthur
  • Arthur's Avatar
Hello! I\'m in Greymouth, New Zealand. I\'ve just downloaded CATrain 2.2.4 and I\'m very impressed! Somebody was asking about ideas for new features to put into a future version - I\'d address this directly to the programmer concerned but it\'s after midnight, I should go to bed, and I couldn\'t find my way back to the original posting...

What I\'d like to see is the ability to add conditional operations to itineraries (If...THEN...ELSE sort of thing). Particularly I\'m looking at setting up a layout for my grandchildren, with two passing loops, and I\'d like my trains to stop automatically in a passing loop if the other train is on their side of the other passing loop and coming towards them.

I\'ll have other questions, but for now that\'s probably enough to sort out?
The administrator has disabled public write access.

Re:Ideas for new features in 2.2.x 28 Mar 2010 15:54 #2

  • Daniel
  • Daniel's Avatar
Hi Arthur,
I\'m working on a new itinerary editor (Yes, it\'s taking a long time, sorry). I\'m also changing the whole internal itinerary structure, so that i can add if then else things. Would it be enough, if you can use something like \'gotoX_if_train_is_on_...\'

So there is a possibility to jump to another instruction sequence if there is another train on the other loop...

My problem is, i know how to program this - but there is no time to do this... I\'m sorry about that. But we will do this as fast as possible - ok?

Kind Regards,

Daniel
The administrator has disabled public write access.

Re:Ideas for new features in 2.2.x 28 Mar 2010 21:57 #3

  • Arthur
  • Arthur's Avatar
Hello, Daniel - thanks for the quick reply!

Just after I sent the previous post it occurred to me that the DOS batch file IF format (IF...THEN without any ELSE) is sufficient - a string of those should be capable of handling multiple conditions. It should be OK if the itinerary file can be edited to achieve this sort of command without needing CATrain itself to be able to generate the code. Some words of caution in the documentation might help avoid non-programmers making a complete mess of the logic!

I\'m curious about the \"Special Function\" provision in the \"Define Train\" dialog box, and how to make use of it. What sort of switching could be activated this way? It would be excellent to have some way of switching lights (battery powered?) or smoke, but I have no idea how this could be controlled in the CAtrain environment. Is it possible to add control signals on top of the PWM voltage that powers the motor, possibly to command a specifically designed function decoder? I assume conventional DCC decoders could not be driven with s PWM 12 volt DC supply.

The cheapest solution for powering a CATrain- driven layout (5 or 6 volts for lights, 12 volts for trains, several amps for several trains) seems possibly to be a PC power supply. These typically produce quite \"stiff\" 5 and 12 volt DC outputs. I have an old (and dead) Compaq supply on my desk here, and it claims to produce +12 volts at 14 amps (trains), +5 volts at 25 amps (Grain-of-wheat bulbs) and + 3.3 volts at 18 amps (LEDs) as well as -5 and -12 volts at much smaller currents.

I think you should be able to buy a brand-new one for 20 - 30 Euros. Can you think of any reasons why that wouldn\'t work?

Best wishes!
The administrator has disabled public write access.
Moderators: joel, daniel, alan, françois

Copyright (c) 2005 - 2015: www.catrain.org by Joël Bouchat & Daniel Merbecks