function [ speed_ref ] = calc_speed( info, cGain, cDistanceRef )
%CALC_SPEED Calculate the speed reference signal for following the safety
%car
%   In fact, it is a controller for speed according to the distance
    distance = double(info); % linearize here
    speed_ref = cGain * (distance - cDistanceRef);
end

