function [ angle ] = calc_angle( info, cGain, cDistanceRef )
%CALC_ANGLE Calculate the angle for slalom
%   In fact, it is a controller for angle according to the distance
    distance = double(info);
    angle = cGain * (distance - cDistanceRef);
end