Page 6 of 7

Re: NXT PROBLEM

Posted: 26 Jun 2013, 20:22
by naneczek
And as I said, I will have the possibility to check this code in two weeks time on LEGO software, but it will be too late and you write all the time to check it. I JUST CAN'T NOW, don't you understand such a simple fact?

Re: NXT PROBLEM

Posted: 26 Jun 2013, 20:27
by HaWe
as I said, I won't help you unless you can't debug and test your code by your own, having an NXT to work with, because it's a schoolwork.
Your problem, if it will be too late then.

And as I said, I give up.

Re: NXT PROBLEM

Posted: 26 Jun 2013, 20:32
by naneczek
ok, looking at your very first post, I can only say that you were very helpful then, you modified the code, gave me full explanation and I understood everything rightaway. What about now?

Re: NXT PROBLEM

Posted: 26 Jun 2013, 20:44
by HaWe
doc-helmut wrote:as I said, I won't help you unless you can't debug and test your code by your own, having an NXT to work with, because it's a schoolwork.
Your problem, if it will be too late then.

And as I said, I give up.

Re: NXT PROBLEM

Posted: 26 Jun 2013, 20:47
by naneczek
Ok, you've got everything at home, you can check it and so on. Sorry but you are not much of a helpful hand here.
Bye

Re: NXT PROBLEM

Posted: 26 Jun 2013, 20:51
by HaWe
yes, it would be different if it was no schoolwork.
But as I wrote:
doc-helmut wrote:as I said, I won't help you unless you can't debug and test your code by your own, having an NXT to work with, because it's a schoolwork.
Your problem, if it will be too late then.

And as I said, I give up.
Bye.
:)

Re: NXT PROBLEM

Posted: 26 Jun 2013, 20:56
by naneczek
Hmm, It is not pure schoolwork. I just wanted to learn it, yet if there is nobody who would help me, explain it to me some things, I just give up.

Re: NXT PROBLEM

Posted: 26 Jun 2013, 21:19
by HaWe
haha, nice try. :lol:

But if it's not about schoolwork, then it's not about just this problem but it's a matter of the correct appraoch to the whole stuff.

Buy some good books about NXC and try to learn to program based on tutorials.
If you got no NXT to try: buy one!
Robot programming makes no sense without having a robot available to program.

The NXT is not cheap, but on Ebay there are lots of 2nd hand sets.

If you want to try to start with a virtual robot instead: maybe try this: http://www.robotvirtualworlds.com/

But forget about trying to make me write code for a schoolwork (either pure schoolwork or not): you will not succeed!
doc-helmut wrote:as I said, I won't help you unless you can't debug and test your code by your own, having an NXT to work with, because it's a schoolwork.
Your problem, if it will be too late then.
edit:
if I advice you to revise your indentations, you should have been wise enough to comply with my request,
and the same it's about my advices to describe in your own words what your code actually is doing, command after command and line after line.

Re: NXT PROBLEM

Posted: 28 Jun 2013, 02:13
by loopymech
I have to agree with doc. This sounds like schoolwork. It won't help you learn if someone does the work for you. I suggest the NXC tutorial and getting some hands-on time with an NXT.

Also, try writing pseudo code (look it up if you need to) and get the proper logic flow. I think you might get more helpful feedback if you do some of the things being advised.

-Loopy

Re: NXT PROBLEM

Posted: 28 Jun 2013, 22:35
by afanofosc
Doc,

Thanks for trying to help this fellow with his code. You were very patient with him.

Just so the original poster knows, you can't read the ultrasonic sensor faster than once every 15 milliseconds (slightly more than that) so it is not possible to take readings at 100 hz, which is what the original problem stated, I think.

John Hansen