tLength = 5000 / Ts;
tIn = 0:1:5000;
curve = 100 * sin(tIn/5000*2*pi) .* sin(tIn/5000*pi);
HalfCircle = sqrt(2500^2-(tIn-2500).^2);
HalfCircle = HalfCircle(2501:end)-2500;

SlalomInput = asin(diff(curve));
test = asin(diff(HalfCircle));