[resolved] NXC: USS readings w/o delay

Discussion specific to NXT-G, NXC, NBC, RobotC, Lejos, and more.
HaWe
Posts: 2500
Joined: 04 Nov 2014, 19:00

Re: NXC: USS readings w/o delay

Post by HaWe »

aswin, did you already a median filter of 3 for closer objects?
to my experience, 4 or at least 5-255 cm are fine then.
aswin0
Posts: 201
Joined: 29 Sep 2010, 06:58

Re: NXC: USS readings w/o delay

Post by aswin0 »

Doc,

You know I love filters. So, Yaeh, I use median filters with my US sensors. But mainly to filter out 255 values when they are invalid. I don't bother to use filters to get good short distance data as I build rovers, "if you can read this sign, you're too close". I can imagine that for other purposes you might need short distance data and filtering would help.

For short ranges I advise to usethe minimum filter as it will filter these samples {255, 4, 255} to become 4. The median filter would return 255.

Aswin
My blog: nxttime.wordpress.com
HaWe
Posts: 2500
Joined: 04 Nov 2014, 19:00

Re: NXC: USS readings w/o delay

Post by HaWe »

For short ranges I advise to use the minimum filter as it will filter these samples {255, 4, 255} to become 4. The median filter would return 255.
good idea!
HaWe
Posts: 2500
Joined: 04 Nov 2014, 19:00

Re: NXC: USS readings w/o delay

Post by HaWe »

In the absence of sufficient sensor ports I now tried it with 6 USS at 2 HT sensor Muxers but I get really bad cross-over echoes in mazes.
I really need to drive them in a single shot mode - but no way to do this with the existing NXT stuff.


I think I have to wait for the EV3 and a real good USB network protocol for sensor and motor remote-controlling...
aswin0
Posts: 201
Joined: 29 Sep 2010, 06:58

Re: NXC: USS readings w/o delay

Post by aswin0 »

doc-helmut wrote: I really need to drive them in a single shot mode - but no way to do this with the existing NXT stuff.
Doc,

do you mean you cannot use single shot mode? Is this because of the sensor mux? The US sensor itself supports single shot mode.

Aswin
My blog: nxttime.wordpress.com
HaWe
Posts: 2500
Joined: 04 Nov 2014, 19:00

Re: NXC: USS readings w/o delay

Post by HaWe »

USS at HTSMux in single shot mode ?? :o
how?? :)

edit:
oh - I think I misunderstood you -
yes, at 1 single NXT port of course 1 USS is working in SSM, but I only have 2 ports for overall 6 USS :|
(or, quite exactly: 4 ports for 16 sensors + 1 motor muxer for 3 extra motors)
Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 16 guests