Sonar sensor/Revo/GCS

94 views
Skip to first unread message

Augmentalist

unread,
Feb 10, 2014, 5:34:58 AM2/10/14
to phoeni...@googlegroups.com
Greetings,

great success with Revo board so far minus the DSM, but thats a whole different issue,

I want to know what data the Sonar sensor provides and to what level it interacts with the
software module as it sits today.

I have seen some people hack altitude functions, in lieu of barometer.

However what I really wanted to do was mount it facing the rear out the back of the craft
horizontally.

I do FPV video from my current setup and would really think an event or warning could be
generated it i am about to back into something.  

Optimally a MAVlink would be great to feed into the MinimOSD.

Any idea where I can get started with this, I have a HC-SR04c and made the appropriate cabling
for the sonar port.

Thanks in advance

peabody124

unread,
Feb 10, 2014, 6:09:34 AM2/10/14
to phoeni...@googlegroups.com
Are you comfortable writing code? If so this is a pretty achievable project to tackle. If you need some guidance you might want to drop in on IRC.

To answer your question though, there is this code https://github.com/TauLabs/TauLabs/pull/738 and here is some more work I did on it https://github.com/peabody124/TauLabs/tree/sonar_hcsr04 to use it for altitude hold https://vimeo.com/72598372

Once you use that and port it to work on Revo (its working on other boards currently) you'd just have to find a way to send that over mavlink to the OSD. Not sure if MinimOSD has anything like that as a message.

peabody124

unread,
Feb 10, 2014, 6:14:44 AM2/10/14
to phoeni...@googlegroups.com
Also you might want to check out this PR https://github.com/TauLabs/TauLabs/pull/1106 which adds scripting support. That means you can upload small snippets of code to the flight controller. It's perfect for things like this where you have a custom new function you would like to add that might not require rewriting core firmware.
Reply all
Reply to author
Forward
0 new messages