developing an automatic grasscutter

but giving 3 inputs seems harder

Harder than what?

Does the thing work when you hardcode the three values? THAT is where your primary effort ought to be.