algorithmic modeling for Rhino
Hello all, I have a question about time coordination between digital data and physical mechanic operations.
I have connected a servo with grasshopper through firefly: from a set of transforming motion, grasshopper generates (attractor points, evaluating distance, etc) series of values between 0-180 for the servo to rotate accordingly.
The problem is, the data takes little time to generate, but the servo needs more time to physically rotate to the instructed angles, and if the servo is till in the middle of the first rotation when the second value kicks in, it would rush to perform the second rotation without finishing the first one.
For instance: the servo receives values and supposed to turn to
"90,120,33,180" angles sequentially, but because the servo doesn't have time to perform "120" and "33",the end movements look like "90,100,90,180"
This problem could be solved in Arduino IDE by adding a "servo various speed" library, and by setting true/ false the servo would know whether or not it needs to finish the first rotation before performing the second.
Is there a way to do that in Grasshopper? Maybe with GH timer?
Tags:
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by