Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: Two motors. Forwards and Backwards #6306
    Liam MolloyLiam Molloy
    Participant

    I found the issue. In the example configurations on the MTC4BT, “backward” is used but in ‘loadControllerConfiguration.h” in line 116 the value “reverse” is used to set the “isinverted” property when the channels are configured.

    In my configuration file I changed “backward” to “reverse” and now the loco runs as expected.

    I would recommend either updating the documentation to say “reverse” or updating the code to say “backward”. Updating the documentation would mean the code does not have to be updated.

    // loadControllerConfiguration.h
    [115] const char *dir = channelConfig[“direction”] | “forward”;
    [116] bool isInverted = strcmp(dir, “reverse”) == 0;

Viewing 1 post (of 1 total)