Remote control and autonomous action using NXT-G
Posted: 22 Nov 2012, 19:52
Hi everyone,
I had been working for quite awhile on a project that used Matlab/Simulink and nxtOSEK, and involved quite a bit of custom hardware. It was an utter pain to get everything to work. Now that it's finished, I would like to build some simple models for a bit of fun. I have constructed a vehicle with two rear wheels driven by individual motors. It's a differentially-driven system, so steering is achieved by varying the rotational speeds of the two motors. For now, I'm using the NXT-G environment and have created a simple test program to tell the vehicle to move forward in a straight line. The ultimate objective is to make the vehicle run along a certain path. In the meantime, I've downloaded a Bluetooth remote program that allows me to control the NXT from a laptop. The purpose of the remote control is to make minor adjustments to prevent the vehicle from hitting a wall or some other object in its path. But whenever I use the remote control, the motors will stop running and won't resume until the program terminates. The NXT-G editor doesn't seem to have a block that addresses the remote control functionality. So, I'm wondering whether it possible to use a remote to temporarily intervene in the autonomous actions of a program without permanently interrupting it. I can't use Simulink for this because the add-on library module (VU-LRT) doesn't have a Bluetooth remote control block. Besides, I don't really want to use Simulink just to program a basic task.
Suggestions, please! Thanks.
Bluetooth Remote program: http://www.norgesgade14.dk/bluetoothremote.php
Cheers
Hippie
I had been working for quite awhile on a project that used Matlab/Simulink and nxtOSEK, and involved quite a bit of custom hardware. It was an utter pain to get everything to work. Now that it's finished, I would like to build some simple models for a bit of fun. I have constructed a vehicle with two rear wheels driven by individual motors. It's a differentially-driven system, so steering is achieved by varying the rotational speeds of the two motors. For now, I'm using the NXT-G environment and have created a simple test program to tell the vehicle to move forward in a straight line. The ultimate objective is to make the vehicle run along a certain path. In the meantime, I've downloaded a Bluetooth remote program that allows me to control the NXT from a laptop. The purpose of the remote control is to make minor adjustments to prevent the vehicle from hitting a wall or some other object in its path. But whenever I use the remote control, the motors will stop running and won't resume until the program terminates. The NXT-G editor doesn't seem to have a block that addresses the remote control functionality. So, I'm wondering whether it possible to use a remote to temporarily intervene in the autonomous actions of a program without permanently interrupting it. I can't use Simulink for this because the add-on library module (VU-LRT) doesn't have a Bluetooth remote control block. Besides, I don't really want to use Simulink just to program a basic task.
Suggestions, please! Thanks.
Bluetooth Remote program: http://www.norgesgade14.dk/bluetoothremote.php
Cheers
Hippie