11-08-2013 05:51 AM
Hello! I have a task to make a NXT Lego robot moving, and I have made some code, but it doesn't work. Can someone help me deal with this? My solution is in attachment. Thanks in advance.
11-08-2013 06:12 AM
One important thing to note: I have to make a robot move via gyroscope. I get the signal from gyro via MAX, but something is wrong in my code.
11-11-2013 05:31 AM
Hi Miki!
Could you elaborate on the issue? "It does not work" can mean a lot of things, from "it is doing something else, not what I want it to do" to "my PC is a burning ruin". So please describe the problem you encountered in detail.
Based on what I know now, I'd suggest not to worry about the final goal, just make the application slowly, step by step. First, just try to get the robot moving. Use one of the examples provided with the toolkit, or follow along with one of these tutorials. How does the example work? Take a closer look how the code is being executed, what are the wait times?
Next up, create the task responsible for gyroscope measurement. Here is a similar application, yu can use it as a starting point. Then if you have the right measurements, start building your control logic. Just wire the outputs to the front panel, to make sure you get the correct values every time.
Let me know if you get stuck somewhere.
Regards:
Andrew Valko
NI Hungary