Class BasicSpeedMatcherConfig

    • Constructor Detail

      • BasicSpeedMatcherConfig

        public BasicSpeedMatcherConfig​(DccLocoAddress address,
                                       float targetStartSpeed,
                                       float targetTopSpeed,
                                       Speed.Unit speedUnit,
                                       boolean trimReverseSpeed,
                                       int warmUpForwardSeconds,
                                       int warmUpReverseSeconds,
                                       PowerManager powerManager,
                                       javax.swing.JLabel statusLabel,
                                       javax.swing.JButton startStopButton)
        Create a config object for a Basic Speed Matcher
        Parameters:
        address - Address of locomotive to speed match
        targetStartSpeed - Target speed at vStart in the given speedUnit
        targetTopSpeed - Target speed at vHigh in the given speedUnit
        speedUnit - Speed.Unit to speed match the locomotive in
        trimReverseSpeed - Set to true to trim the locomotive's reverse speed, false otherwise
        warmUpForwardSeconds - Number of seconds to warm up the locomotive before forward speed matching; set to 0 to skip the forward warm up
        warmUpReverseSeconds - Number of seconds to warm up the locomotive before trimming revers speed; set to 0 to skip the reverse warm up
        powerManager - PowerManager for turning on the DCC system power
        statusLabel - JLabel status label in the SpeedoConsoleFrame
        startStopButton - JButton for starting and stopping speed matching