kfas
Student
- Mar 25, 2021
- 2
I need help to convert the following derivative integration pseudocode for proximity sensing to a matlab program
X[i-1] = X[0]
I[i-1] = 0
Loop1:
D = X - X[i-1]
Is (ABS(D) greater than DT)?
true:
I = I[i-1] + D
else:
I = I[i-1]
Is (I H/d)
true:
Object detected
I[i-1] = I
else:
Object not detected
I[i-1] = I*L
X[i-1] = X[0]
I[i-1] = 0
Loop1:
D = X - X[i-1]
Is (ABS(D) greater than DT)?
true:
I = I[i-1] + D
else:
I = I[i-1]
Is (I H/d)
true:
Object detected
I[i-1] = I
else:
Object not detected
I[i-1] = I*L