Thanks for your reply. I've now developed the scratchx interface using your API and it works for both the live and simulated environments.
It uses the existing python code to provide an interface between scratch and the robot/simulator. I've just tweaked it so that it works using the scratchx javascript plugin. See basic diagram below.
[ScratchX] <-> [ScratchXPlugin] <---> [Scratch Environment] <---> [Robot Webserver]
Red = Javascript
Blue = Python on client
Green = Python (py_bot_webserver) on robot
It seems to work fairly well but I need to play around with the constants (MOVE_SPEED_PER_SECOND, TURN_SPEED_PER_SECOND, ENCODER_TICKS_PER_CM, ENCODER_TICKS_PER_DEGREE] to make sure that the live and simulator environments tie together better. Any advice on this would be welcomed! I'm happy to give you a demo of this if you want to see it in action?
Cheers,
PhilStatistics: Posted by bennalar — Mon Aug 31, 2015 8:59 pm
]]>