LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

nxt robot movement

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.

0 Kudos
Message 1 of 3
(2,479 Views)

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.

0 Kudos
Message 2 of 3
(2,474 Views)

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

Andrew Valko
National Instruments Hungary
0 Kudos
Message 3 of 3
(2,420 Views)