Sonar, does it work, how do I tell ?

Post Reply
psuedoman
Posts: 17
Joined: Sun Jan 27, 2013 3:40 pm

Sonar, does it work, how do I tell ?

Post by psuedoman »

Hi all,

So I have a GPS and a SR04 sonar module attached to my gps-i2c-nav board. It's running r62 of the code. Sonar module is ticking away, and is producing sensible waveforms on my scope. GPS data is coming through. I have tweaked the Multiwii V2.2 code on my Crius V1 board to read the sonar data via the gps-i2c-nav board. Mods to the code were found here https://github.com/luggi/multiwii-firmw ... 06ab7db57f

Question is how do I tell in MultiWiiConf if the sonar is working or not ?

Also with respect to flying the thing how does the sonar input integrate with the baro sensors height estimation ?

Thanks.
Cam.

User avatar
EOSBandi
Posts: 802
Joined: Sun Jun 19, 2011 11:32 am
Location: Budapest, Hungary
Contact:

Sonar, does it work, how do I tell ?

Post by EOSBandi »

nada
it is not implemented yet.

psuedoman
Posts: 17
Joined: Sun Jan 27, 2013 3:40 pm

Re: Sonar, does it work, how do I tell ?

Post by psuedoman »

Only good for turning on landing lights then ?

EDIT: I'll answer my own question: The centimetre value shows up in debug[2] in MultiWiiConf, and sure enough from looking at the code all it does with sonarAlt is switch landing lights on or off.

User avatar
EOSBandi
Posts: 802
Joined: Sun Jun 19, 2011 11:32 am
Location: Budapest, Hungary
Contact:

Sonar, does it work, how do I tell ?

Post by EOSBandi »

sonar attached to an i2cps board is not implemented at all it multiwii yet.

psuedoman
Posts: 17
Joined: Sun Jan 27, 2013 3:40 pm

Re: Sonar, does it work, how do I tell ?

Post by psuedoman »

Yup I got that, it also appears any other type of sonar does very little also. Landing lights from best I can tell. No problem here, just wanted to check I wasn't missing something.

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: Sonar, does it work, how do I tell ?

Post by copterrichie »

If I could make dreams come true, this is what I would like to work on, that being Obstacle Avoidance, not so much auto-landing. Given the current media climate and fear mongering, it would be nice to have a copter that knows how to avoid objects.



psuedoman
Posts: 17
Joined: Sun Jan 27, 2013 3:40 pm

Re: Sonar, does it work, how do I tell ?

Post by psuedoman »

Saw that vids a few years ago, think it was responsible for kicking me off with multicopters. Very good.

Post Reply