# Patent

## Title
Method and module for determining of at least one reference value

## Abstract

At least one reference value is determined for controlling a vehicle's speed by a method that includes predicting, in a first prediction, a first speed based an engine torque that retards the vehicle as compared with a conventional cruise control along a horizon, and, in a second prediction, a second speed based on an engine torque that accelerates the vehicle as compared with the conventional cruise control; comparing the first and second speeds with a lower limit value and/or an upper limit value which delineate a speed range within which speed is maintained, with an offset added to said lower and/or upper limit values if the vehicle is in a route segment that includes a steep hill; and determining the at least one reference value based on the respective comparisons and the first and second predicted speeds.

## Background
CROSS-REFERENCE TO RELATED APPLICATIONS
The present application is a 35 U.S.C. §§371 national phase conversion of PCT/SE2011/051585, filed Dec. 22, 2011, which claims priority of Swedish Application No. 1151271-2, filed Dec. 22, 2011. The contents of both applications are incorporated by reference herein. The PCT International Application was published in the English language.
FIELD OF THE INVENTION
The present invention relates to a method and a module for determination of at least one reference value which indicates how a vehicle's speed is to be influenced and which can be used to control at least one control system of the vehicle, according to the present disclosure.
BACKGROUND TO THE INVENTION
Cruise control is now usual in motor vehicles, e.g. cars, trucks and buses. An object of cruise control is to achieve a uniform predetermined speed. This is done either by adjusting the engine torque to avoid retardation, or by applying braking action on downhill runs where the vehicle is accelerated by its own weight. A more general object of cruise control is to provide convenient driving and better comfort for the vehicle's driver. A driver of a vehicle equipped with cruise control usually chooses a set speed vset as the speed he/she wishes the vehicle to maintain on level roads. A cruise control then supplies an engine system of the vehicle with a reference speed vref used for control of the engine. The set speed vset may thus be regarded as an input signal to the cruise control, whereas the reference speed vref may be regarded as an output signal from the cruise control and is used for control of the engine.
Today's traditional cruise control (CC) maintains a constant reference speed vref usually set by the vehicle's driver in the form of a set speed vset which is thus here a desired speed chosen for example by him/her, and for today's conventional cruise controls the reference speed is constant and equal to the set speed, i.e. vref=vset. The value of the reference speed vref changes only when adjusted by the driver while the vehicle is in motion. The reference speed vref is then sent to a control system which controls the vehicle so that its speed corresponds when possible to the reference speed vref. If the vehicle is equipped with an automatic gearchange system, the gears may be changed by that system on the basis of the reference speed vref to enable the vehicle to maintain the reference speed vref, i.e. to enable it to maintain the desired set speed vset.
In hilly terrain, the cruise control system will try to maintain the set speed vset uphill and downhill. This may result inter alia in the vehicle accelerating over the crest of a hill and into a subsequent downgrade. It will then need to be braked to avoid exceeding the set speed vset or will reach a speed vkfb at which the constant speed brake is activated, which is a fuel-expensive way of driving the vehicle. It may also need to be braked downhill to avoid exceeding the set speed vset or the constant speed brake's activation speed vkfb in cases where the vehicle does not accelerate over the crest of the hill.
To reduce fuel consumption, especially on hilly roads, economical cruise controls such as Scania's Ecocruise® have been developed. This cruise control tries to estimate the vehicle's current running resistance and also has information about its historical running resistance. The economical cruise control may also be provided with map data comprising topographical information. The vehicle is then located on the map, e.g. by means of GPS, and the running resistance along the road ahead is estimated. The vehicle's reference speed vref can thus be optimised for different types of roads in order to save fuel, in which case the reference speed vref may differ from the set speed vset. This specification refers to cruise controls which allow the reference speed vref to differ from the set speed vset chosen by the driver, i.e. reference speed-regulating cruise controls.
An example of a further development of an economical cruise control is a “look ahead” cruise control (LACC), a strategic form of cruise control which uses knowledge of sections of road ahead, i.e. knowledge of the nature of the road ahead, to determine the reference speed vref. LACC is thus an example of a reference speed-regulating cruise control whereby the reference speed vref is allowed, within a certain range, to differ from the set speed vset chosen by the driver, in order to achieve more fuel saving.
Knowledge of the road section ahead may for example comprise information about prevailing topology, road curvature, traffic situation, roadworks, traffic density and state of road. It may further comprise a speed limit on the section ahead, and a traffic sign beside the road. Such knowledge is for example available from location information, e.g. GPS (global positioning system) information, map information and/or topographical map information, weather reports, information communicated between vehicles and information provided by radio. All this knowledge may be used in a variety of ways. For example, information about a speed limit on the road ahead may be used to achieve fuel efficiency by lowering the vehicle's speed before reaching a lower speed limit. Similarly, knowledge of a road sign which indicates for example a roundabout or intersection ahead may also be used to achieve fuel efficiency by braking before the vehicle reaches the roundabout or intersection.
An LACC cruise control does for example make it possible, before a steep upgrade, for the reference speed vref to be raised to a level above the set speed vset, since the vehicle will be expected to lose speed on such a climb owing to high train weight relative to engine performance. Similarly, before a steep downgrade, the LACC cruise control makes it possible for the reference speed vref to be lowered to a level below the set speed vset, since the vehicle will be expected to accelerate on such a downgrade owing to its high train weight. The concept here is that reducing the speed at which the vehicle begins the downhill run makes it possible to reduce the energy braked away and/or the air resistance losses (as reflected in the amount of fuel injected before the downgrade). The LACC cruise control may thus reduce fuel consumption without substantially affecting journey time.
Such cruise control systems can be made robust if the topography ahead is made known by the vehicle having map data and GPS. The cruise control system may also alter the vehicle's speed proactively, i.e. before situations arise.
A vehicle usually has a number of ECUs (electronic control units) which control various electronic systems of the vehicle. The vehicle's engine is often controlled by an ECU of its own, called EMS (engine management system). A cruise control's logic may be situated in the EMS but this is sometimes not possible where the EMS has insufficient memory capacity and/or already has a high processor load. If the cruise control's logic is situated in some other ECU than the EMS, reference values, e.g. a desired reference speed vref, have to be sent via CAN (controller area network) to the engine control system's regulator, which then regulates the vehicle's speed on the reference speed vref.
A traditional PID regulator works on the basis of a reference speed vref received. When this reference speed vref is altered by the cruise control's logic and is sent via CAN, it is the PID regulator in the engine control system which regulates the vehicle speed towards the reference speed vref. The cruise control logic predicts the vehicle's speed but the regulator in the engine control system tries at the same time to regulate the vehicle's speed, which can lead to problems. It may for example result in maximum torque not being ordered by the engine system at the beginning of a climb despite the cruise control logic having catered for it in the prediction of the reference speed vref. There is therefore risk that the regulator may regulate the engine system with a gradually increasing error.
US 2005/0096183 refers to a speed regulator for a vehicle travelling downhill. The hills concerned are described as having a particular downward gradient, and when the driver operates a gradient switch a constant speed is set for the vehicle for as long as the switch is on. A constant speed is thus set when the driver indicates that the vehicle is on a hill.
U.S. Pat. No. 6,076,036 bases cruise control on a speed setting, the vehicle's current speed, an acceleration and a change in the gradient of the road, which is measured by a sensor, in order to set the fuel flow for lower fuel consumption.
SUMMARY OF THE DISCLOSURE
The object of the present invention is to propose improved cruise control of a vehicle when its speed is to be predicted by the cruise control logic and is at the same time to be regulated by the regulator, and in particular to avoid fuel being unnecessarily injected into the engine because of an unstable control signal to the engine control system.
According to an aspect of the present invention, the objects described above are at least partly achieved by applying the aforesaid method, which is characterised by:

    
    
        making a first prediction vpred—Tnew—ret and a second prediction vpred—Tnew—acc of a vehicle speed along a horizon, said first prediction based on an engine torque Tret which retards the vehicle as compared with a conventional cruise control, and said second prediction based on an engine torque Tacc which accelerates the vehicle as compared with a conventional cruise control;
        comparing said respective first prediction vpred—Tnew—ret and second prediction vpred—Tnew—acc of the vehicle speed with a lower limit value vmin and/or an upper limit value vmax which delineate a range within which the vehicle's speed should be, with an offset voffset added to said lower and/or upper limit values vmin and vmax if the vehicle is in a route segment which comprises a steep hill; and
        determining at least one reference value based on at least one of said respective comparisons and said first prediction vpred—Tnew—ret and second prediction vpred—Tnew—acc of the vehicle speed along the horizon.
    
    


According to an aspect of the present invention, at least one of the objects described above is achieved by using the aforesaid module for controlling a vehicle's speed, which module is characterised by:

    
    
        making a first prediction vpred—Tnew—ret and a second prediction vpred—Tnew—acc of a vehicle speed along a horizon, said first prediction based on an engine torque Tret which retards the vehicle as compared with a conventional cruise control, and said second prediction based on an engine torque Tacc which accelerates the vehicle as compared with a conventional cruise control;
        comparing said respective first prediction vpred—Tnew—ret and second prediction vpred—Tnew—acc of the vehicle speed with a lower limit value vmin and/or an upper limit value vmax which delineate a range within which the vehicle's speed should be, with an offset voffset added to said lower and/or upper limit values vmin and vmax if the vehicle is in a route segment which comprises a steep hill; and
        determining at least one reference value based on at least one of said respective comparisons and said first prediction vpred—Tnew—ret and second prediction vpred—Tnew—acc of the vehicle speed along the horizon.
    
    


The invention provides assurance of correct speed set-point values (reference values) being imparted to the regulator to enable it to follow the prediction of the vehicle's speed. Maximum assurance may thus be afforded of available engine torque on steep upgrades and zero torque/drag torque on steep downgrades. This means that the regulating error affecting the regulator on steep upgrades is sufficient at the beginning of the climb for the engine to be able to deliver maximum torque at that stage in order to avoid the vehicle's speed dropping more than necessary. On steep downhill runs, low constant speed set-point values are provided to be able to avoid injecting fuel into the engine.
The invention also provides a way of improving the performance of a distributed regulating system in which traditional methods of directly influencing the regulator, e.g. disconnection or stronger regulator parameters, are not easy to apply because the set-point value generator and the regulator are situated in different control units.
The invention also affords the advantage of preventing a vehicle's speed from increasing at the crest of a hill in order to reach the vehicle's reference speed before an ensuing downhill run. This speed increase at the crest of a hill generally causes an unnecessary cost.
The invention thus achieves consistent regulation of the vehicle's speed, i.e. no lowering of speed followed by a speed increase at the crest of a hill.
Preferred embodiments of the invention are described herein.



BRIEF DESCRIPTION OF THE ATTACHED DRAWINGS
The invention is described below with reference to the attached drawings, in which:
FIG. 1 depicts a module according to an embodiment of the invention.
FIG. 2 is a flowchart for the method according to the invention.
FIG. 3 illustrates the difference between the invention and a traditional cruise control according to an embodiment of the invention.
FIG. 4 illustrates the difference between the invention and a traditional cruise control according to an embodiment of the invention.



DETAILED DESCRIPTION OF PREFERRED EMBODIMENTS OF THE INVENTION
FIG. 1 depicts a module for controlling a vehicle's speed according to an aspect of the invention. The module comprises an input unit adapted to receiving a desired speed, i.e. a set speed vset, for the vehicle. The driver may for example set a speed vset which he/she wishes the vehicle to maintain. The module comprises also a horizon unit adapted to determining a horizon H for the itinerary by means of map data and location data. The horizon H is made up of route segments with at least one characteristic for each segment. A possible example of characteristics of segments is their gradient α, in radians.
The description of the present invention states that GPS (global position system) is used to determine location data for the vehicle, but specialists will appreciate that other kinds of global or regional positioning systems are conceivable to provide these data. Such positioning systems might for example use radio receivers to determine the vehicle's location. The vehicle might also use sensors to scan the surroundings and thereby determine its location.
FIG. 1 illustrates how the module is provided with information about the itinerary from maps (map data) and GPS (location data). The itinerary is sent to the module bit by bit, e.g. via CAN (controller area network) bus. The module may be separate from or be part of the one or more control systems which are to use reference values for regulating. An example of such a control system is the vehicle's engine control system. For example, a horizon is put together for each control system, since the control systems regulate on different parameters. Alternatively, the unit which handles maps and positioning systems may also be part of a system which is to use reference values for regulating. In the module, the bits of the itinerary are then put together in a horizon unit to construct a horizon and are processed by the processor unit to create an internal horizon on which the control system can regulate. The horizon is then continually supplemented by new bits of itinerary from the unit with GPS and map data, to maintain a desired length of horizon. The horizon is thus updated continuously when the vehicle is in motion.
CAN is a serial bus system specially developed for use in vehicles. The CAN data bus makes digital data exchange possible between sensors, regulating components, actuators, control devices etc., and provides assurance that two or more control devices can have access to the signals from a given sensor in order to use them to control components connected to them. Each of the connections between the units illustrated in FIG. 1 may take the form of one or more from among a cable, a data bus, e.g. a CAN (controller area network) bus, an MOST (media orientated systems transport) bus, or some other bus configuration, or a wireless connection.
The module comprises also a calculation unit adapted to making a first prediction vpred—Tnew—ret and a second prediction vpred—Tnew—acc of a vehicle speed along a horizon, said first prediction based on an engine torque Tret which retards the vehicle as compared with a conventional cruise control, and said second prediction based on an engine torque Tacc which accelerates the vehicle as compared with a conventional cruise control. The module is further adapted to comparing said respective first prediction vpred—Tnew—ret and second prediction vpred—Tnew—acc of the vehicle speed with a lower limit value vmin and/or an upper limit value vmax which delineate a range within which the vehicle's speed should be, with an offset voffset added to said lower and/or upper limit values vmin and vmax if the vehicle is in a route segment which comprises a steep hill.
The module is further arranged to determine at least one reference value based on at least one of said respective comparisons and said first prediction vpred—Tnew—ret and said second prediction vpred—Tnew—acc of the vehicle speed along the horizon.
The module is further arranged to supply, e.g. by sending, to a control system of the vehicle said at least one reference value on which the vehicle is then regulated. How the predictions of the speeds are made will be explained in more detail below.
The module and/or the calculation unit comprise at least a processor and a memory unit which are adapted to making all the calculations, predictions and comparisons of the method according to the invention. Processor means here a processor or microcomputer, e.g. a circuit for digital signal processing (digital signal processor, DSP), or a circuit with a predetermined specific function (application specific integrated circuit. ASIC). The calculation unit is connected to a memory unit which provides it with, for example, the stored programme code and/or stored data which the calculation unit needs to enable it to do calculations. The calculation unit is also adapted to storing partial or final results of calculations in the memory unit.
The method for control of vehicle speed according to the present invention and its various embodiments may also be implemented in a computer programme which, when executed in a computer, e.g. the aforesaid processor, causes the computer to apply the method. The computer programme usually takes the form of a computer programme product stored on a digital storage medium, and is contained in a computer programme product's computer-readable medium which comprises a suitable memory, e.g. ROM (read-only memory), PROM (programmable read-only memory), EPROM (erasable PROM), flash memory, EEPROM (electrically erasable PROM), a hard disc unit, etc.
FIG. 2 is a flowchart for a method which inter alia comprises steps for the method according to the invention. The diagram comprises not only steps for the determination of reference values according to the invention but also steps for controlling the vehicle's speed according to an embodiment of the invention.
The method comprises a first step A) of acquiring vset as a desired set speed for the vehicle to maintain, and a second step B) of determining a horizon for the itinerary by means of map data and location data comprising route segments with at least one characteristic for each segment.
A number of simulation cycles may be done along the length of the horizon. A simulation cycle sj may comprise a number N of simulation steps which may be conducted at a predetermined rate f. According to the invention, the following steps are performed during such a simulation cycle sj;
C1) Making a first prediction vpred—Tnew—ret of a vehicle speed along a horizon on the basis of an engine torque Tret which retards the vehicle as compared with a conventional cruise control.
C2) Comparing said first prediction vpred—Tnew—ret of the vehicle speed with a lower limit value vmin and/or an upper limit value vmax which delineate a range within which the vehicle's speed should be. Said first prediction thus does not have to be compared here both with the lower limit value vmin and with the upper limit value vmax. Before the comparison, if the vehicle is in a route segment which comprises a steep hill, an offset voffset is here added to said lower limit value vmin and/or said upper limit value vmax.

C3) Making a second prediction vpred—Tnew—acc of a vehicle speed along a horizon on the basis of an engine torque Tacc which accelerates the vehicle as compared with a conventional cruise control.

C4) Comparing said second prediction vpred—Tnew—acc of the vehicle speed with a lower limit value vmin and/or an upper limit value vmax which delineate a range within which the vehicle's speed should be. Said second prediction thus does not have to be compared here both with the lower limit value vmin and with the upper limit value vmax. Before the comparison, if the vehicle is in a route segment which comprises a steep hill, an offset voffset is here added to said lower limit value vmin and/or said upper limit value vmax. The comparison is thus done on the basis of the lower and upper limit values vmin and vmax, including any applicable offset.

C5) Determining at least one reference value on the basis of at least one of said respective comparisons and said first prediction vpred—Tnew—ret and second prediction vpred—Tnew—acc of the vehicle speed along the horizon.

As a further step D) said at least one reference value is then supplied, e.g. by being sent via a CAN bus, to a control system of the vehicle in which it is used to regulate the vehicle's speed according to said at least one reference value.
When the vehicle is travelling along the road, the control system is supplied with reference values on which it then regulates the vehicle. According to the invention, when the vehicle's speed is in a route segment which comprises a steep uphill or downhill run, an offset voffset is added in a step C5) to said lower and/or upper limit values vmin and vmax. The vehicle is thereafter regulated on the reference speed vref at step D) until the end of the steep uphill or downhill run. A reference speed vref is then again taken from the predicted internal horizon. It is thus possible to compensate for the fact that the cruise control logic is situated in some other control system than the EMS, either by having a large regulating error at the beginning of the uphill run or by having a small regulating error on the downhill run. Applying the invention makes it possible to have a maximum engine torque on steep climbs and to ensure that the vehicle needs only a very small amount of braking on downhill runs.
An embodiment of the invention only allows an offset on the second lower and upper limit values vmin and vmax when the vehicle's current speed is already outside the range bounded by them.
An example of this is where the vehicle loses speed on an uphill run and is approaching a downhill run. A negative offset on vmin is then allowed so that the vehicle can temporarily maintain a lower speed than vmin on the downhill run when vpred—Tnew—ret indicates that it will accelerate over the set speed vset because of gravitation downhill.
According to another embodiment it is possible in the above example to introduce a margin for the set speed vset so that the maximum value of the first prediction vpred—Tnew—ret of the vehicle speed downhill (for the vehicle accelerated by gravitation) will be equal to or above a further upper limit value vmax2 which is related to a set speed vset. According to an embodiment, the further upper limit value vmax2 corresponds to the set speed plus a constant c1, i.e. vmax2=vset+c1. According to another embodiment, the further upper limit value vmax2 corresponds to a factor c1 multiplied by the set speed vset, i.e. vmax2=vset*c1. For example, this factor c1 may have the value 1.02, which means that the further upper limit value vmax2 is 2% higher than the set speed vset.
Another example of this is where the vehicle is accelerated by gravitation on a downhill run and then approaches an uphill run. A positive offset on the upper limit value vmax is then allowed so that the vehicle can temporarily maintain a higher speed than the upper limit value vmax uphill when the second prediction vpred—Tnew—acc indicates that its speed will drop to below the set speed vset on the uphill run.
According to another embodiment it is possible in the above example to introduce a margin for the set speed vset so that the minimum value of the second prediction vpred—Tnew—acc of the vehicle speed uphill (for the vehicle losing speed uphill because of gravitation) will be equal to or below a further lower limit value vmin2 which relates to the set speed vset. According to an embodiment, the further lower limit value vmin2 corresponds to the set speed minus a constant c2, i.e. vmin2=vset−c2. According to another embodiment, the further lower limit value vmin2 corresponds to a factor c2 multiplied by the set speed vset, i.e. vmin2=vset*c2. This factor c2 may for example have the value 0.98, which means that the further lower limit value vmax2 is 2% lower than the set speed vset. An example of a typical value for the offset voffset is 5 km/h, but any other suitable values may be employed if they achieve the object of the invention.
According to an embodiment of the invention, the offset voffset has a positive value when the vehicle is in a route segment which comprises a steep upgrade. According to this embodiment, a positive offset is added to said lower and/or upper limit values vmin and vmax when the vehicle is on a steep uphill run. The reference speed vref supplied to the vehicle's control system is therefore taken as the reference speed vref calculated by the control system on the basis of said lower and/or upper limit values vmin and vmax plus the offset, i.e. vmin+voffset and vmax+voffset, when the vehicle is on a steep uphill run. Maximum engine torque is thus assured on steep climbs.
According to an embodiment of the present invention, the offset voffset has a negative value when the vehicle is in a route segment which comprises a steep downgrade. In a similar way to on steep upgrades, when the vehicle is on a steep downgrade a negative offset voffset is therefore added to said lower and/or upper limit values vmin and vmax. The reference speed vref with which the vehicle's control system is provided is then taken as the reference speed vref calculated by the control system on the basis of said lower and/or upper limit values vmin and vmax plus −|voffset|, i.e. vmin−|voffset| and vmax−|voffset|, when the vehicle is on a steep downhill run. This provides assurance of zero torque or drag torque on steep downgrades to avoid having to brake downhill.
According to an embodiment, the value of the offset voffset is variable over time in order to be able to meet performance and comfort criteria which vary over time. For example, the offset voffset may be reduced (ramped down) towards zero at the end of a steep climb in order to avoid jerking due to rapid changes in the reference speed vref. Similarly, the offset voffset may be reduced (ramped down) towards zero at the end of a steep downhill run.
According to the invention, to avoid consuming unnecessary amounts of fuel when a first steep upgrade or a first steep downgrade is followed by a steep upgrade or a steep downgrade within a certain distance L, neither acceleration nor retardation of the vehicle are allowed within section L.
In other words, only one out of acceleration and retardation is allowed within section L in cases where L defines the distance between a steep upgrade and a subsequent steep downgrade. Similarly, only one out of acceleration and retardation is allowed within section L in cases where L defines the distance between a steep downgrade and a subsequent steep upgrade.
According to an embodiment, the length of section L depends on the vehicle's speed and/or an applied driving mode. For example, a mode chosen by the driver may decide the length of section L and consequently also how the vehicle's speed is to be regulated.
Thus according to these embodiments, only one out of acceleration and retardation takes place before the next hill. FIGS. 3 and 4 illustrate schematically a non-limitative example of these embodiments.
A conventional cruise control is represented by a chain-dotted line, and cruise control according to these embodiments of the invention by a dotted line. Section L is here specified as having a certain length which is less than a predetermined threshold value. According to an embodiment, the threshold value here is 250-500 m. Section L may for example be determined by adding up the lengths of the route segments which are situated between the hills.
When the vehicle has climbed the hill in FIG. 3, the reference speed vref is taken as equal to the lower limit value vmin before the next hill. This speed vmin is then maintained throughout section L, i.e. until the vehicle is on, for example, a steep downgrade. This avoids increasing the speed of the vehicle, which is what a conventional cruise control would do, since the vehicle would then endeavour to maintain the set speed vset before subsequently lowering its speed again in order to be able to take advantage of the energy arising on the downhill run. Downhill braking of the vehicle may thus be avoided.
When the vehicle runs with conventional cruise control (chain-dotted line) more energy will have to be braked away downhill, as illustrated in the diagram, in which vkfb represents the retarder speed brake's speed setting (constant speed brake speed). The vehicle's constant speed brake therefore acts when this speed is exceeded.
Similarly, energy is saved by maintaining a constant speed on section L as illustrated in FIG. 4. When the vehicle has traveled down the hill in FIG. 4, the reference speed vref is taken as equal to the upper limit value vmax before the next climb. This speed is then maintained throughout section L, i.e. until the vehicle is on, for example, a steep upgrade. This avoids its speed dropping before the climb, which is what would happen with a conventional cruise control, since the vehicle would then endeavour to maintain the set speed vset.
The invention comprises also the aforesaid module for determination of reference values for a vehicle's control system as illustrated in FIG. 1. This module is arranged to perform all the method steps described above for the various embodiments of the invention. The invention thus proposes a module which can be used in a vehicle to regulate reference values robustly and safely where the module is in some other ECU than the vehicle's ECU, i.e. EMS. The module may be part of a control system whose reference values/set-point values it is intended to regulate, or be a freestanding module separate from the control system.
According to an embodiment of the invention, threshold values which are used by the invention, e.g. the aforesaid threshold values for section L, are determined in the calculation unit on the basis of vehicle-specific values, e.g. current transmission ratio, current vehicle weight, maximum torque curve, mechanical friction and/or the vehicle's running resistance at current speed. Threshold values used by the present invention may also be determined at least partly on the basis of choice of driving mode by the vehicle's driver. Thus the threshold values may be determined on the basis of the vehicle's state at the time and/or on the basis of driving mode choice by the driver. Necessary signals for determining these values may be obtained from CAN or be monitored by any appropriate sensors.
According to an embodiment, the characteristics of route segments comprise their length and gradient, and the calculation unit is adapted to calculating gradient threshold values lmin and lmax. Thus the vehicle's speed can be regulated on the undulations of the road ahead in order to travel in a fuel-economising way.
The horizon unit is preferably adapted to determining the horizon continuously along a planned itinerary for the vehicle on which the calculation unit is adapted to continuously performing steps to calculate and update reference values for the control system for the whole length of the internal horizon. In an embodiment, the horizon is therefore constructed bit by bit as the vehicle travels along the road ahead. The set-point values/reference values for the control system are calculated and updated continuously irrespective of whether new route segments are added or not, since the references to be calculated depend also on how values specific to the vehicle change along the itinerary.
The present invention is not restricted to the embodiments described above. Various alternatives, modifications and equivalents may be used. The aforesaid embodiments therefore do not limit the invention's scope which is defined by the attached claims.

## Claims

1. A method for determination of at least one reference value for a speed regulator that controls a speed of a vehicle such that said reference value may differ from a value corresponding to the speed indicated by a driver of the vehicle, the method comprising:
making, by a module comprising an automated processor, a first prediction and a second prediction of the speed of the vehicle along a horizon, said first prediction based on an engine torque which retards the vehicle as compared with speed regulator in which the reference value equals the speed indicated by the driver, and said second prediction based on an engine torque which accelerates the vehicle as compared with the speed regulator in which the reference value equals the speed indicated by the driver;
comparing said first predicted speed and said second predicted speed, respectively, with a lower limit value and/or an upper limit value, wherein the lower and upper limit values delineate a speed range within which the speed is maintained, with an offset added to said lower and/or upper limit values when the vehicle is in a route segment having a steep hill route characteristic;
determining the at least one reference value based on at least one of said comparisons and said first predicted speed and said second predicted speed; and
outputting the at least one reference value to a vehicle control system for controlling the speed of the vehicle.

2. A method according to claim 1, wherein said offset is positive when the vehicle is in a route segment having a steep upgrade route characteristic.

3. A method according to either of claim 1, wherein said offset is negative when the vehicle is in a route segment having a steep downgrade route characteristic.

4. A method according to any one of claim 1, wherein the value of said offset varies over time.

5. A method according to claim 1, wherein the value of said offset is at least partly based on a driving mode received from a system of the vehicle.

6. A method according to claim 5, wherein said driving mode is chosen by a driver of the vehicle.

7. A method according to claim 1, wherein only one of acceleration and retardation is allowed within a first section where a steep upgrade is followed by a steep downgrade within the length of the first section from said steep upgrade.

8. A method according to claim 1, wherein only one of acceleration and retardation is allowed within a first section where a steep downgrade is followed by a steep upgrade within the length of the first section from said steep downgrade.

9. A method according to claim 7, wherein the length of the first section depends on at least one of:
the speed, and
a driving mode applied.

10. A method according to claim 1, wherein an offset to the respective lower and upper limit values is allowed when a current speed of the vehicle is outside the speed range bounded by the lower and upper limit values and when the first predicted speed or the second predicted speed indicates that the speed indicated by the driver will be reached by imparting the reference value which resulted in the first predicted speed or second predicted speed.

11. A module configured to determine at least one reference value for a speed regulator that controls a speed of a vehicle by a control system of a vehicle such that said reference value may differ from a value corresponding to the speed indicated by a driver of the vehicle, the module comprising:
a calculation unit configured:
to make a first prediction and a second prediction of a vehicle speed along a horizon, said first prediction based on an engine torque which retards the vehicle as compared with the speed regulator in which the reference value equals the speed indicated by the driver, and said second prediction based on an engine torque which accelerates the vehicle as compared with the speed regulator in which the reference value equals the speed indicated by the driver;
to compare said first predicted speed and said second predicted speed, respectively, with a lower limit value and/or an upper limit value, wherein the lower and upper limit values delineate a range within which the speed is maintained, with an offset added to at least one of said lower and upper limit values when the vehicle is in a route segment having a steep hill route characteristic; and
to determine the at least one reference value based on said respective comparisons and/or said first predicted speed and said second predicted speed; and

said module configured to output the at least one reference speed determined to the control system of the vehicle.

12. A module according to claim 11, wherein said offset is positive when the vehicle is in a route segment having a steep upgrade route characteristic.

13. A module according to claim 11, wherein said offset is negative when the vehicle is in a route segment a steep downgrade route characteristic.

14. A module according to claim 11, wherein the value of said offset varies over time.

15. A module according to claim 11, wherein the value of said offset is at least partly based on a driving mode received from a system of the vehicle.

16. A module according to claim 15, further comprising an input unit configured to receive said driving mode chosen by a driver of the vehicle.

17. A module according to claim 11, wherein the calculation unit is configured to allow only one of acceleration and retardation within a first section where a steep upgrade is followed by a steep downgrade within the length of the first section from said steep upgrade.

18. A module according to claim 11, wherein the calculation unit is adapted to allowing only one out of acceleration and retardation within the first section where a steep downgrade is followed by a steep upgrade within the length of the first section from said steep downgrade.

19. A module according to claim 17, wherein the length of the first section depends on at least one of:
the speed, and
a driving mode received.

20. A module according to claim 11, wherein the calculation unit is configured to determine threshold values which are used in the control of the speed based on at least one of a current transmission ratio, a current vehicle weight, a maximum torque curve for an engine of the vehicle, a mechanical friction and a running resistance at current speed of the vehicle.

21. A module according to claim 11, wherein the calculation unit is configured to calculate threshold values in the form of gradient threshold values.

22. A module according to claim 11, wherein an offset to each of the lower and upper limit values is allowed when a current speed is outside the speed range bounded by the lower and upper limit values and when the first predicted speed or the second predicted speed indicates that the speed indicated by the driver will be reached by imparting the reference value which resulted in the first predicted speed or the second predicted speed.

23. A non-transitory computer-readable medium incorporating instructions for enabling a vehicle to control a speed of the vehicle when the instructions are run on an automated processor, the instructions comprising:
prediction instructions configured to make a first prediction and a second prediction of the speed of the vehicle along a horizon, said first prediction based on an engine torque which retards the vehicle as compared with speed regulator in which the reference value equals the speed indicated by the driver, and said second prediction based on an engine torque which accelerates the vehicle as compared with the speed regulator in which the reference value equals the speed indicated by the driver;
comparison instructions configured to compare said first predicted speed and said second predicted speed, respectively, with a lower limit value and/or an upper limit value, wherein the lower and upper limit values delineate a speed range within which the speed is maintained, with an offset added to said lower and/or upper limit values when the vehicle is in a route segment having a steep hill route characteristic;
reference value determination instructions configured to determine the at least one reference value based on at least one of said comparisons and said first predicted speed and said second predicted speed; and
outputting instructions configured to output the at least one reference value to a vehicle control system for controlling the speed of the vehicle.

24. A vehicle comprising the module of claim 11.