Bluetooth with NXC
Posted: 04 Feb 2013, 01:26
Remember my artillery project? Those test fires are done, the data points formed a nearly perfect line, and I'm on to programming the robot. The first thing I did was make a the subroutines for the trajectory calculator, move to absolute position, etc. Those all work flawlessly. Next, I tried making programs for a remote NXT for heading and distance input, and for the turret to move to the necessary position. Both programs work fine independently.
The bluetooth communication doesn't work though. I've done very little with BT in NXC so far, and that online NXC guide has been very helpful with understanding individual functions, but it's not helping me so much with say, waiting for a "ready" command from one robot or other subroutine-y things.
If someone could point me in the right direction on this, I would greatly appreciate it. Any other resources, sample code, or just tips would help me a lot. Thanks! : )
The bluetooth communication doesn't work though. I've done very little with BT in NXC so far, and that online NXC guide has been very helpful with understanding individual functions, but it's not helping me so much with say, waiting for a "ready" command from one robot or other subroutine-y things.
If someone could point me in the right direction on this, I would greatly appreciate it. Any other resources, sample code, or just tips would help me a lot. Thanks! : )