Hi there,
I am using this repo to send OSC messages using local UDP from my Yun:
I would like to send the MPU6050 accelometers/gyrometers data (to Ableton Live, Sonic Pi or others).
(I am using the basic MPU6050.h library by J. Rowberg to read the MPU6050)
I am bewildered by the resulting OSC throughput I get using this approach: it's desperately slow, on the order of 1 OSC msg/s. This OSCyun library requires the pyOSC lib to be installed on linino and the "oscsend.py" python script located in root@arduino.local/OSCtoPD. This latter python script is run by the OSCyun.cpp with process.run():
// Send INT values.
void yunOSC::send(String adr, int* msg, int len) {
Process p;
p.begin("python");
p.addParameter("/OSCtoPD/oscsend.py");
p.addParameter(IP_ADR);
p.addParameter(PORT);
p.addParameter(adr);
for(int i = 0; i < len; i++) {
p.addParameter(String(msg[i]));
}
p.run();
p.flush();
}
While looking to make it work, I already noticed that it was slow using the WinSCp console for a direct execution on the Yun via:
python "/root/OSCtoPD/oscsend.py" 192.168.1.181 4560 "/yun" 1 2.0 "3"
Best
Jeff