I had to use "var target_angle;" instead of the defines.

Besides for that it works great

Thank you.