Explanation of params to CAB .setFunction routine wanted please

Les B49 Apr 9, 2018

  1. Les B49

    Les B49 TrainBoard Member

    37
    3
    7
    I'm confused about 2 parameters to this: int fNum and cabFunction ... cFunc

    Initially, I thought cFunc (being set to values like F_LIGHT, etc.) was the parameter which specified the function output to use on the decoder to activate or deactivate a function (such as the front light). Trial and error seems to tell me now it's the fNum parameter - not too surprising with a name like that!

    So what is the purpose of the cFunc parameter please?

    (And am I correct in thinking there isn't a screen which lets me set up the parameters for a new engine/decoder? Do I have to add lines into the controllerConfig tab and recompile the whole app?)

    Thanks,
    Les
     

Share This Page