NXTTalk problem

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

NXTTalk problem

Андрей-19
Hello!
Can anybody help me with NXTalk(a Smalltalk implementation for Lego Mindstorm NXT http://www.hpi.uni-potsdam.de/hirschfeld/projects/nxtalk/)? A have installed it on my Lego NXT. Almost everything work fine, but I have troubles with NXTRadar.
When I try to read distance from NXTRadar sensor its everytime returns 0. Other sensors works fine. I cant find any documentation about NXTalk except webpage of the project. But where is no information about using of NXTRadar on that page. So I decided to use it as a regular sensor. I did something like this:
radar := NXTRadar enable: 4.
self display show: (radar distance).
radar disable.
Am I right? Or NXTRadar differs from other sensors and needs special processing?
Thank you for you attention to my problem.
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: NXTTalk problem

Michael Haupt-3
Hi Andrey,

(sorry, I don't have cyrillic characters on my keyboard; I hope the
transliteration of your name is correct)

2009/11/14 Андрей <[hidden email]>:
> When I try to read distance from NXTRadar sensor its everytime returns 0. Other sensors works fine. I cant find any documentation about NXTalk except webpage of the project. But where is no information about using of NXTRadar on that page. So I decided to use it as a regular sensor. I did something like this:
> radar := NXTRadar enable: 4.
> self display show: (radar distance).
> radar disable.
> Am I right? Or NXTRadar differs from other sensors and needs special processing?

NXTRadar does require some special handling inside the VM, as its data
are delivered via the I2C bus, which has certain timing constraints
... but that should not be your concern. :-)

It might be that you have a version of the VM and image that are not
up to date, and that would be my fault. I will check this tomorrow and
send you the latest version immediately (plus, have the web page
updated).

In the meantime, to make sure things are OK, could you please try the
NXTRadarTest application (it is in the NXTalk-ST-HardwareTests
category)? It expects the radar to be connected to port 3 and
continuously displays the measured distance. Move your hand in front
of the radar to check.

Looking at your code, it *might* be a problem that the radar is
disabled immediately after the distance is measured. This *might*
interfere with the aforementioned timing constraints, but I cannot say
that for sure.

Best,

Michael
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re[2]: NXTTalk problem

Андрей-19
Hi, Michael.
I am very glad to receive your answer!
Don't worry about transliteration. It's OK.
I wish to thank you for NXTalk. It's refresh my interest for NXT platform and Smalltalk.
Today I downloaded last version NXTalk package(NXTalk-mha.137.mcz). After that I started NXTRadarTest and it's works!!! Hurrah! But now Bumper application break down. It's say something like 'unknown primitive'. I think it's because incompatibe version of VM(I have version 0.7). I try to download new version from NXTalk project webpage. But its 0.7 too.
Anyway you did a very good work with NXTalk. And I hope to see version 1.0 of it.
By the way, do you now about WooWee RS-Media robot(http://www.wowwee.com/en/products/toys/robots/robotics/robosapiens:rs-media)? Its a humanod robot toy with embeded Linux. I think it will be very intersting to program this thing with Smalltalk.
Best regards, Andrey.

P.S. I am sorry for my english. I now it's not very good. Sorry.
-----Original Message-----
From: Michael Haupt <[hidden email]>
To: Андрей <[hidden email]>,
"A friendly place to get answers to even the most basic questions about Squeak." <[hidden email]>
Date: Sun, 15 Nov 2009 13:22:04 +0100
Subject: Re: [Newbies] NXTTalk problem

> Hi Andrey,
>
> (sorry, I don't have cyrillic characters on my keyboard; I hope the
> transliteration of your name is correct)
>
> 2009/11/14 Андрей <[hidden email]>:
> > When I try to read distance from NXTRadar sensor its everytime returns 0. Other sensors works fine. I cant find any documentation about NXTalk except webpage of the project. But where is no information about using of NXTRadar on that page. So I decided to use it as a regular sensor. I did something like this:
> > radar := NXTRadar enable: 4.
> > self display show: (radar distance).
> > radar disable.
> > Am I right? Or NXTRadar differs from other sensors and needs special processing?
>
> NXTRadar does require some special handling inside the VM, as its data
> are delivered via the I2C bus, which has certain timing constraints
> .... but that should not be your concern. :-)
>
> It might be that you have a version of the VM and image that are not
> up to date, and that would be my fault. I will check this tomorrow and
> send you the latest version immediately (plus, have the web page
> updated).
>
> In the meantime, to make sure things are OK, could you please try the
> NXTRadarTest application (it is in the NXTalk-ST-HardwareTests
> category)? It expects the radar to be connected to port 3 and
> continuously displays the measured distance. Move your hand in front
> of the radar to check.
>
> Looking at your code, it *might* be a problem that the radar is
> disabled immediately after the distance is measured. This *might*
> interfere with the aforementioned timing constraints, but I cannot say
> that for sure.
>
> Best,
>
> Michael
>
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Re[2]: NXTTalk problem

Michael Haupt-3
Hi Andrey,

2009/11/15 Андрей <[hidden email]>:
> I wish to thank you for NXTalk. It's refresh my interest for NXT platform and Smalltalk.

cool. :-)

> Today I downloaded last version NXTalk package(NXTalk-mha.137.mcz). After that I started NXTRadarTest and it's works!!! Hurrah! But now Bumper application break down. It's say something like 'unknown primitive'. I think it's because incompatibe version of VM(I have version 0.7). I try to download new version from NXTalk project webpage. But its 0.7 too.

OK, then that's entirely my fault indeed. Sorry about that. I
completely forgot to have version 0.8 uploaded to the web page. How
embarrassing. :-P

I will trigger that first thing tomorrow morning.

> Anyway you did a very good work with NXTalk. And I hope to see version 1.0 of it.

Thanks. I didn't do most of the work, though; that was Martin Beck.
I'm currently maintaining NXTalk, and also developing new things ...
not much activity lately. Still, there is a number of things missing,
such as remote debugging. If you (or anybody else) want to contribute,
let me know.

> By the way, do you now about WooWee RS-Media robot(http://www.wowwee.com/en/products/toys/robots/robotics/robosapiens:rs-media)? Its a humanod robot toy with embeded Linux. I think it will be very intersting to program this thing with Smalltalk.

Looks nifty. Well, Squeak runs on Linux, right? If the Linux in there
is not too exotic, it should be possible to run a headless
(remote-controlled) Squeak on the robot. Hardware interfacing would
have to be implemented, though.

> P.S. I am sorry for my english. I now it's not very good. Sorry.

No problem at all.

Best,

Michael
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re[4]: NXTTalk problem

Андрей-19
Hi Michael!

> OK, then that's entirely my fault indeed. Sorry about that. I
completely forgot to have version 0.8 uploaded to the web page. How
embarrassing. :-P

>I will trigger that first thing tomorrow morning.

Thanks a lot!
I'll download new version tomorrow.

> Thanks. I didn't do most of the work, though; that was Martin Beck.
I'm currently maintaining NXTalk, and also developing new things ...
not much activity lately. Still, there is a number of things missing,
such as remote debugging. If you (or anybody else) want to contribute,
let me know.

So transmit my thanks to Martin too. Remote debuging will be very useful, i think. Unfortunality I have no enough experience for participation in NXTalk project. :(

>Looks nifty. Well, Squeak runs on Linux, right? If the Linux in there
is not too exotic, it should be possible to run a headless
(remote-controlled) Squeak on the robot. Hardware interfacing would
have to be implemented, though.

Yes, a lot of work to do.

Best regards, Andrey.
 


-----Original Message-----
From: Michael Haupt <[hidden email]>
To: Андрей <[hidden email]>
Date: Sun, 15 Nov 2009 19:51:28 +0100
Subject: Re: Re[2]: [Newbies] NXTTalk problem

> Hi Andrey,
>
> 2009/11/15 Андрей <[hidden email]>:
> > I wish to thank you for NXTalk. It's refresh my interest for NXT platform and Smalltalk.
>
> cool. :-)
>
> > Today I downloaded last version NXTalk package(NXTalk-mha.137.mcz). After that I started NXTRadarTest and it's works!!! Hurrah! But now Bumper application break down. It's say something like 'unknown primitive'. I think it's because incompatibe version of VM(I have version 0.7). I try to download new version from NXTalk project webpage. But its 0.7 too.
>
> OK, then that's entirely my fault indeed. Sorry about that. I
> completely forgot to have version 0.8 uploaded to the web page. How
> embarrassing. :-P
>
> I will trigger that first thing tomorrow morning.
>
> > Anyway you did a very good work with NXTalk. And I hope to see version 1.0 of it.
>
> Thanks. I didn't do most of the work, though; that was Martin Beck.
> I'm currently maintaining NXTalk, and also developing new things ...
> not much activity lately. Still, there is a number of things missing,
> such as remote debugging. If you (or anybody else) want to contribute,
> let me know.
>
> > By the way, do you now about WooWee RS-Media robot(http://www.wowwee.com/en/products/toys/robots/robotics/robosapiens:rs-media)? Its a humanod robot toy with embeded Linux. I think it will be very intersting to program this thing with Smalltalk.
>
> Looks nifty. Well, Squeak runs on Linux, right? If the Linux in there
> is not too exotic, it should be possible to run a headless
> (remote-controlled) Squeak on the robot. Hardware interfacing would
> have to be implemented, though.
>
> > P.S. I am sorry for my english. I now it's not very good. Sorry.
>
> No problem at all.
>
> Best,
>
> Michael
>
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners