|NXT Radar display
|Page 1 of 1|
|Author:||NXTUser [ Mon Jun 11, 2007 3:28 am ]|
|Post subject:||NXT Radar display|
I`m fairly new to the NXT environment, only about 1 month now, I started with the NXT-G but quickly switched to the ROBOTC !! Much easier to use, I bough the software and enjoy it very much. Here is a piece of code that I modified, the spiral drawing app. that converts the display into a typcal RADAR display.
I still have a lot to learn
I attached the SONAR sensor with GREAT difficulty to a motor port, (getting horisontal movement to vertical is not easy), it sweeps from right to left and back, displaying a trace on the LCD as a sweeping line. As soon as the sonar pics up a target it blips it on the display and controls the other motor wheels.
OH I forgot, the sonar sensor quickly goes out of sync, so to sync it I added the touch sensor so that every left to right sweep syncronize the netx sweep, so that the cable doesn`t get snapped off etc.
Its just a test, and needs MUCH !!!! improvement, but for those out there like myself examples help allot.
1- Here is one for the development team, how about a line erase function. All good and well you can draw it, but you cannot erase it easilly !!
2- The sonar sensor is a pain (at least the one I have), I don`t know if its the software or the device, but it seems to be very erratic and inacurate. It mostly displays a value of 24, and when in RAW mode 255 is the default, and then also reverts to 24. The distance is also VERY inaccurate ? Anyone else has this problem ? If not I suspect the device is a bit faulty.
Here is the code, simply copy and paste
|Author:||amormachine [ Mon Jul 09, 2007 6:53 pm ]|
|Post subject:||Radar Whoes ...|
I have had the same problem with a radar display! I have no idea what the problem is ... But, as you mentioned, the radar values simply don't seem right. I've noticed that when I point the sonar sensor to something that is really far away, it correctly returns about 255, but then I show it something closer ... at that point, even if I show it something that is extremely far away again, it doesnt seem to return 255 ever again. Anyone have any ideas?
|Author:||kbirk [ Sat Jul 14, 2007 3:28 pm ]|
|Post subject:||Sonar problem|
I nearly have the same problem. My sonar shows the right value, but it is very slow to update the value, and sometimes it almost freeze in the same distance/value.
Any one got a fix..?
|Author:||JamesD [ Mon Jul 16, 2007 7:55 am ]|
This thread may help you.
It includes info like:
|Author:||thpropst [ Thu Feb 21, 2008 6:00 am ]|
for me stopping the motor every 5° and waiting about 10ms before reading the US sensor helped a lot.
best regards, thomers.
|Author:||Dick Swan [ Wed Feb 27, 2008 10:38 am ]|
THe sonar sensor only polls something like every 50 milliseconds. So if you want to stop briefly to get a reading then 10 milliseconds is too short!
I suppose if you are sweeping back-and-forth very fast you will get erroneous readings if th angle at start of echo pulse transmission is quite different from the angle when the pulse returns and is received. The distance may be accurate but the angle that you get is "wrong".
|Page 1 of 1||All times are UTC - 5 hours [ DST ]|
|Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group