Subject:
|
Problems with FindWorld() function
|
Newsgroups:
|
lugnet.robotics.spybotics
|
Date:
|
Wed, 8 Jun 2005 05:35:51 GMT
|
Viewed:
|
7454 times
|
| |
| |
I'm checking out the function FindWorld() [with BrixC and nqc version 3.1 a1
(built Mar 8 2005, 07:33:11)] and run into problems. The call
int t = -1;
ClearWorld();
FindWorld(t, SPY_RANGE, REL_GT, RANGE_NOWHERE);
seems to work quite well. However if I try to restrict the conditions for
finding items I get bad results.
FindWorld(t, SPY_RANGE, REL_EQ, ... )
finds no items. I tried it out with last parameter = RANGE_HERE, RANGE_THERE and
RANGE_ANYWHERE. None of them worked.
If I try
FindWorld(t, SPY_RANGE, REL_GT, ... )
then FindWorld always finds an item regardless of the last parameter. E.g.
FindWorld(t, SPY_RANGE, REL_GT, RANGE_THERE)
finds items in the THERE range, too.
I'm not sure if this is a bug in NQC (or in the firmware ?!?) or if I do
something wrong. Can anybody help?
|
|
Message has 1 Reply: | | Re: Problems with FindWorld() function
|
| (...) The code generated by NQC appears to be correct. I've had reports over the years from lots of people who have had great success with using the world relation table information in the Spybot so I doubt that the firmware is buggy in this respect (...) (19 years ago, 8-Jun-05, to lugnet.robotics.spybotics)
|
4 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|