I want to calculate the damper speed from a suspension sensor, I made a script but the result is not what I expected. Does anybody know how to do this?
the script I made is:
Dim Last_time
Dim Last_output
Dim Last_mm
Dim Diff_time
function output()
Diff_time=VAR_0001-Last_time
if Diff_time =0 then
Diff_time=1
end if
Last_output=(Last_mm-VAR_0201)/Diff_time
Last_mm =VAR_0201
Last_time=VAR_0001
output=Last_output
end function
VAR_0201 is in mm.
Thanks
suspension, convert mm to mm/s
-
- Posts: 220
- Joined: Thu Mar 15, 2007 3:41 pm
- Location: Norwich, UK
- Contact:
-
- Posts: 14
- Joined: Thu May 01, 2008 9:57 pm
Return to “General software support”
Who is online
Users browsing this forum: No registered users and 12 guests