Closed chlohal closed 2 years ago
Current code:
ideal plan: We have 1 node instead of 2; it's a PlusNode of two MultiInputNodes:
PlusNode
MultiInputNodes
new PlusNode( new MultiInputNode(...), new MultiInputNode(...), )
and then the above code can be simplified! This is drastically more efficient, since we're only calling getFloatArrayOfInput once!
getFloatArrayOfInput
driver.driveOmni(input.getFloatArrayOfInput("drivingControls"));
Current code:![image](https://user-images.githubusercontent.com/26300854/150384842-45a20c09-3b0f-4977-928e-3ef007a5c842.png)
ideal plan: We have 1 node instead of 2; it's a
PlusNode
of twoMultiInputNodes
:and then the above code can be simplified! This is drastically more efficient, since we're only calling
getFloatArrayOfInput
once!