Need help understan…
 
Share:
Notifications
Clear all

Need help understanding OSC commands


108dc21600fc3c35f636c74f3c77398f?s=80&d=mm&r=g
(@netfreak_21)
Member
Joined: 8 months ago
Posts: 1
Topic starter  

Hello,

I tried to make my own android app to control brobot. I tried to send a string like “/1/fader1   ,f   0.65”

But i float OSC_extractParamFloat(uint8_t pos) gives me always 0.00 as return value.

So I activated DEBUG and watched in serial windows what comes from the original app.

For example: The Byte value ist 63 3 162 244 and converted to float it gives me 0.51

I dont get how the conversion works or even what the original app sends because the byte values change even on the same float values….

Can someone tell me what I dont get here ???

Some example string from the original app would maybe help.

 

Regards

Rene


Quote
7efedf1c61c6199ec4c497b7151fb8d5?s=80&d=mm&r=g
(@rstcologne)
Member Customer
Joined: 9 months ago
Posts: 4
 

Hey,

actually, the OSC commands are documented in the code itself. There’s an app called Protokol which allows you to listen to the OSC commands if you point the remote app (I use Touch OSC on iOS) to your computer. 

Here are some of the messages I captured in Protokol:

RECEIVE | ENDPOINT([192.168.61.200]:2223) ADDRESS(/1/fader1) FLOAT(0.15412542)

RECEIVE | ENDPOINT([192.168.61.200]:2223) ADDRESS(/1/push1) FLOAT(1)

The faders range from 0 to 1 with 0.5 being “stick center”, the neutral position. 

The buttons for pro and the arm are either 0 or 1. 

Hope this helps…


ReplyQuote
42ecc8805b5c0c29709d892d3cc9781d?s=80&d=mm&r=g
(@johanmarais)
Member
Joined: 5 months ago
Posts: 4
 

Hi – I am unable to send a value from my bRobot to a TouchOCS app I made for my iPhone. Can anyone please explain to me how this should be done – or provide a code snipet. Are there specific “Options” which I need to set in my TouchOCS app?


ReplyQuote
Share: