I hope someone can help me diagnose this problem. I have a motor patch (that works!) with three numeric inputs (pins). One for motor run duration, one for left side speed and one for right side speed.
I need to feed different values to those three inputs depending upon whether I want to go forward, back, right, or left. Input pins can only accept a single wire, so I am using a SELECT node to set the values that are sent to the three pins. Here is the patch:
I call that my direction patch. I set default values for each of the “X” inputs on the SELECT node. I attempted to use my direction patch in this “move” patch:
However, I receive an error when attempting to compile it.
Transpiling…
Can’t deduce types for patch Connect links or bind values to generic inputs
The only generic inputs are on the SELECT node. So, I went back and put input-number inputs on each of the “X” inputs of the SELECT node (they appear in the image above as IN1, IN2, etc). I still get the same error after adding the input-number inputs which should enable XOD to deduce their types, namely number.
I don’t know what is causing this error and would appreciate some insight.