function CoP=calccop(react)

% Características do pé
footdata;

amplifier_factor=3;

CoPx=0.0;
CoPy=0.0;
if (sum(react)~=0)
    CoPx=sum(react.*sensor_locx)/sum(react)*amplifier_factor;
    CoPy=sum((react-50).*sensor_locy)/sum((react-50))*amplifier_factor;
end

CoP=[CoPx CoPy];
