I would like to create a Prolog program that would send commands to the NXT robot via Bluetooth. This is similar to what has been done with Legolog but I want to do it using Bluetooth and NXC. Prolog does not have any support for Bluetooth to NXT so I would have to have the NXC programs interpret the commands coming from Prolog and then send them to the brick. Does anyone have any ideas?
I suppose it depends on what roboteer meant by 'commands'.timpattinson wrote:The problem is that NXC programs run on the brick, and so cannot receive input from a Prolog program (or any other program running on the PC)
If commands used were Direct Commands (which is basically a message passing protocol), then it is possible to interface the Prolog program to NXC.
There is a mailbox mechanism for sending and receiving messages via USB/Bluetooth.
Users browsing this forum: No registered users and 10 guests