public LimitSwitchedMotor(SpeedController controller,Trigger top,boolean topOnValue,
                                                         Trigger bottom,boolean bottomOnValue) {
        _controller = controller;
        _top = top;
        _bottom = bottom;
        _bgThread.schedule(_bgTask, 0, (long)(DEFAULT_PERIOD*1000));
        _topOn = topOnValue;
        _bottomOn = bottomOnValue;
    }