Exemple #1
0
        public OperationalSpeedCommand GetSpeedCommand()
        {
            SpeedControlData speedData = speedGenerator.GetCommandedSpeed();

            double engineTorque;
            double brakeTorque;

            SpeedController.ComputeCommands(speedData, Services.StateProvider.GetVehicleState(), out engineTorque, out brakeTorque);

            return(new OperationalSpeedCommand(engineTorque, brakeTorque, null));
        }
Exemple #2
0
        public void BeginTrackingCycle(CarTimestamp timestamp)
        {
            if (SpeedController.config != SpeedControllerConfig.Stopping)
            {
                SpeedController.Reset();
                SpeedController.config = SpeedControllerConfig.Stopping;
            }

            distProvider.Transform(timestamp);

            curTimestamp = timestamp;
        }