git-svn-id: http://moon:8086/svn/matlab/trunk@100 801c6759-fa7c-4059-a304-17956f83a07c
This commit is contained in:
2018-12-14 17:16:15 +00:00
parent 1ab94a4bea
commit f59fb8f67d
17 changed files with 1121 additions and 0 deletions
Executable
+15
View File
@@ -0,0 +1,15 @@
function flexRET_eval(tilt_ref)
%tilt_ref = 3356
tilt_min = 4000;
unload_steps = 560;
tilt_target_distance = tilt_min - unload_steps
tooth_steps = 360/14*4
k = fix(tilt_target_distance / tooth_steps + 0.5)
tilt_min_raster = fix(tilt_ref + k*tooth_steps + 0.5)
probe = (tilt_min_raster-tilt_ref) / tooth_steps