How to create a layout in the GUI?

CaptKidd Feb 10, 2017

  1. CaptKidd

    CaptKidd New Member

    9
    8
    2
    I am totally new to DCC and I am trying to get up to speed on DCC++ by reading all I can here. I have watched the videos. All seems straight forward except one thing. The videos show a track layout but I can't seem to locate any way to create this.
    This entire DCC++ thing is a real blessing as the cost of commercial equipment is so expensive. Great job to all involved with much thanks.

    Sent from my SM-G900P using Tapatalk
     
    Scott Eric Catalano likes this.
  2. Gary Menzel

    Gary Menzel New Member

    7
    7
    2
    I am also new to DCC++ and still don't have a system up and running but I am a software developer.

    From the source code page it says:

    Starting at around line 365 in “configController” you'll find all the code that creates the track layout. You should be able to modify these to match your own. The code under the "dTracks" tab should provide some info on the parameters.​

    But the actual file is "controllerConfig.pde" and the line there is around 371 (I suspect the README was not updated at some point).

    Other than that, the layout is hard-coded into the code and you have to change those lines for your own layout. At present, I am not exactly what what all the parameters are but I suspect they are positions on the screen and such - maybe check out the dTracks.pde for the parameters available; there are multiple versions of the Track object. It might help to draw your layout on some grid paper and then scale the positions appropriately for the screen image.

    CAVEAT: as I said, I have not tried any of this but hopefully this points you in the right direction. When I get some time and understand the code better I hope to be looking at making both the Controller and the BaseStation more configurable through files and/or UI.
     
    Scott Eric Catalano likes this.
  3. CaptKidd

    CaptKidd New Member

    9
    8
    2
    Thanks. I haven't downloaded the code yet. Just ordered an ebay uno and drive shield today. No train equipment yet either. I expect problems with the sheild, so I have a long way to go.

    Sent from my SM-G900P using Tapatalk
     
    Scott Eric Catalano likes this.
  4. Jirka

    Jirka TrainBoard Member

    32
    39
    3
     
    Scott Eric Catalano likes this.
  5. CaptKidd

    CaptKidd New Member

    9
    8
    2
    Thanks. I am guessing that came from the original post announcing DCC++. I am still working my way through all 159 pages of that thread.
    I did get out and buy some track and connections yesterday, so I'm slowly getting there.
    Again, so much thanks.

    Sent from my SM-G900P using Tapatalk
     
    Scott Eric Catalano likes this.
  6. CaptKidd

    CaptKidd New Member

    9
    8
    2
    I'm unfamiliar with github, but have used other version control programs. I have downloaded the master versions of both base station and controller plus sample layout. The base compiles fine and all both controllers "process" fine.
    Can I assume I have the proper versions?

    Sent from my SM-G900P using Tapatalk
     
    Scott Eric Catalano likes this.
  7. CaptKidd

    CaptKidd New Member

    9
    8
    2
    Forgot to mention that I saw some -2 versions out there, hence the reason for the question.

    Sent from my SM-G900P using Tapatalk
     
  8. Jirka

    Jirka TrainBoard Member

    32
    39
    3
    Master versions are recommended. If you have the proper motor shield, I would not expect problems. Unfortunately I have not tried to compile the sketches with the recent versions of Arduino IDE and Processing respectively, so only hoping they are backwards compatible...

    Advantage of the Controller is that one can run in Simulation mode even without the HW connected so that you could start coding your layout. But you should know that this hard-coding is not very popular activity, so probably that is the reason why most of users is actually using JMRI with its GUI layout editor.
     
    Scott Eric Catalano likes this.
  9. CaptKidd

    CaptKidd New Member

    9
    8
    2
    I was wondering what JMRI was used for. As a totally new user of DCC, there's a lot to learn. It seemed that DCC++ was a complete package, but I did notice that it could be run within JMRI. I just didn't know why I would do that.

    Sent from my SM-G900P using Tapatalk
     
    Scott Eric Catalano likes this.

Share This Page