Welcome, Guest
Username Password: Remember me

How to retrieve servo positions from a UClient ?
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: How to retrieve servo positions from a UClient ?

How to retrieve servo positions from a UClient ? 5 years, 6 months ago #166

Use server.writeToSocket which send in TCPIP on port 7171 the result of its argument.

For example :
client.send("Global.server.writeToSocket(\"PsSrv:\"+Global.servo.position());");

It returns a message with header "PsSrv:" followed by the result of Global.servo.position executed on the urbi server

The output looks like :
PsSrv:50.00a55.56b50.00c43.86d56.14e50.00f10.00g80.00h91.55i42.55j60.00k91.18l40.00m42.55n81.82&stop&&

You can test with console command :nc reeti_ip_addx 7171
  • Page:
  • 1
Time to create page: 0.11 seconds