Hi,
I am trying to set up a connection between wii and processing through osculator. osculator is immediately recognizing wii controller, but processing could not receive those messages. I guess there is a problem with OSculator configuration settings I am choosing but I probably tried all combinations. The pitch method does not even print a word.
here is the code piece.
Code:
import oscP5.*; import netP5.*; OscP5 osc; float[] pitchDraw; float[] rollDraw; float[] yawDraw; void setup() { size(400, 400); osc = new OscP5(this,8000); osc.plug(this,"pry","/wii/1/accel/pry"); osc.plug(this,"pitch","/wii/1/accel/pry/0"); background(255); smooth(); noFill(); stroke(0); // Drawing Wii values pitchDraw = new float[width]; rollDraw = new float[width]; yawDraw = new float[width]; } float pitch; float roll; float yaw; void pry(float _pitch, float _roll, float _yaw, float _accel) { pitch = _pitch; roll = _roll; yaw = _yaw; } void pitch(float _pitch){ pitch = _pitch; print("pitch "+pitch); } void draw(){ }
and here is the osculator configuration screen
Thank you
Comment