A module for determining speed set-point values v ref for a vehicle's control systems, comprising an input unit adapted to input, e.g. by the vehicle's driver, of a reference speed v set which is the speed desired by the driver for the vehicle, wherein the module comprises - a horizon unit adapted to determining a horizon by means of received position data and map data of an itinerary, the horizon being made up of route segments with at least one characteristic for each segment; - a processor unit adapted to calculating speed set-point values v ref across the horizon according to rules pertaining to categories in which segments within the horizon are placed, so that v ref is within a range bounded by v min and v max, where v min ≤ v set ≤ v max, characterised in that the processor unit is further adapted to determining a control signal with control parameters for the vehicle's automatic gear change control unit, based on one or more vehicle-specific values and the calculated speed set-point values v ref across the future horizon, and in that the processor unit is adapted to calculating threshold values for said at least one characteristic of segments according to said one or more vehicle-specific values, which threshold values serve as boundaries for assigning segments to different categories, and to comparing at least one characteristic of each segment with the calculated threshold values and placing each segment in a category according to the results of the comparisons. wherein the module comprises - a horizon unit adapted to determining a horizon by means of received position data and map data of an itinerary, the horizon being made up of route segments with at least one characteristic for each segment; - a processor unit adapted to calculating speed set-point values v ref across the horizon according to rules pertaining to categories in which segments within the horizon are placed, so that v ref is within a range bounded by v min and v max, where v min ≤ v set ≤ v max, - a horizon unit adapted to determining a horizon by means of received position data and map data of an itinerary, the horizon being made up of route segments with at least one characteristic for each segment; - a processor unit adapted to calculating speed set-point values v ref across the horizon according to rules pertaining to categories in which segments within the horizon are placed, so that v ref is within a range bounded by v min and v max, where v min ≤ v set ≤ v max, characterised in that the processor unit is further adapted to determining a control signal with control parameters for the vehicle's automatic gear change control unit, based on one or more vehicle-specific values and the calculated speed set-point values v ref across the future horizon, and in that the processor unit is adapted to calculating threshold values for said at least one characteristic of segments according to said one or more vehicle-specific values, which threshold values serve as boundaries for assigning segments to different categories, and to comparing at least one characteristic of each segment with the calculated threshold values and placing each segment in a category according to the results of the comparisons.