Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- component spooler;
- pin in signed min_limit;
- pin in signed max_limit;
- pin in float vel_in;
- pin in signed step_counts;
- pin out float vel_out;
- function _;
- license "GPLv2 or later";
- ;;
- FUNCTION(_)
- {
- if(step_counts <= min_limit){vel_out = vel_in;}
- if(step_counts >= max_limit){vel_out = -vel_in;}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement