Ejemplo n.º 1
0
        private void KickdownShift(Threshold threshold)
        {
            _gearShifter.Downshift();

            if (threshold.IsStrongKickDown())
            {
                _gearShifter.Downshift();
            }
        }
Ejemplo n.º 2
0
        public void Accelerate(Threshold threshold)
        {
            if (_externalSystems.IsDrivingDown())
            {
                _gearShifter.Downshift();
            }

            _baseMode.Accelerate(threshold);
        }
Ejemplo n.º 3
0
        public void Accelerate(Threshold threshold)
        {
            if (threshold.IsKickdown())
            {
                _gearShifter.Downshift();
                return;
            }

            CurrentRpmShift();
        }
Ejemplo n.º 4
0
        public void Accelerate(GearShiftBoundaries gearShiftBoundaries)
        {
            var currentRpm = _externalSystems.GetCurrentRpm();

            if (currentRpm < gearShiftBoundaries.DownshiftBoundary)
            {
                _gearShifter.Downshift();
            }

            else if (currentRpm > gearShiftBoundaries.UpshiftBoundary * _rpmUpshiftFactor)
            {
                _gearShifter.Upshift();
            }
        }
Ejemplo n.º 5
0
        public void Accelerate(Threshold threshold)
        {
            var currentRpm = _externalSystems.GetCurrentRpm();

            if (currentRpm > _gearShiftBoundaries.UpshiftBoundary)
            {
                _gearShifter.Upshift();
                return;
            }

            if (currentRpm < _gearShiftBoundaries.DownshiftBoundary)
            {
                _gearShifter.Downshift();
            }
        }
Ejemplo n.º 6
0
 public void ManualDownshift()
 {
     _gearShifter.Downshift();
 }