Search found 10 matches

by dryflyer
Wed Apr 08, 2015 1:46 pm
Forum: Software development
Topic: Sonar HC-SR04 Support now implemented in MW2.4
Replies: 101
Views: 44417

Re: Sonar HC-SR04 Support now implemented in MW2.4

Can you please explain the difference between enabling BARO and enabling SONAR and enabling both?
by dryflyer
Wed Apr 08, 2015 1:06 pm
Forum: Software development
Topic: Sonar HC-SR04 Support now implemented in MW2.4
Replies: 101
Views: 44417

Re: Sonar HC-SR04 Support now implemented in MW2.4

Went for a fly tonight and I am loving the accuracy of altitude hold with SONAR. I don't have to worry about throttle anymore! So much more fun for a rookie pilot like me. Thank you!
by dryflyer
Mon Apr 06, 2015 7:48 am
Forum: Software development
Topic: Sonar HC-SR04 Support now implemented in MW2.4
Replies: 101
Views: 44417

Re: Sonar HC-SR04 Support now implemented in MW2.4

Hi Jaysonragasa, I tested the code with a live run and my quadcopter, I have to say that you've done a great job. The altitude hold is very stable. So much fun flying in my underground carpark. I was able to fly up and down ramps and the altitude adjusted accordingly. When I pitch or roll the quadco...
by dryflyer
Mon Apr 06, 2015 12:19 am
Forum: Software development
Topic: Sonar HC-SR04 Support now implemented in MW2.4
Replies: 101
Views: 44417

Re: Sonar HC-SR04 Support now implemented in MW2.4

Brilliant. Love your work. It seems to be working.

I'll have a test fly today and let you know how it goes.
by dryflyer
Sun Apr 05, 2015 2:21 pm
Forum: Software development
Topic: Sonar HC-SR04 Support now implemented in MW2.4
Replies: 101
Views: 44417

Re: Sonar HC-SR04 Support now implemented in MW2.4

Also, your task order in loop method in MultiWii.cpp is different when comparing your post to the file you provided. Will this make a difference? Which one is right/better?
by dryflyer
Sun Apr 05, 2015 1:28 pm
Forum: Software development
Topic: Sonar HC-SR04 Support now implemented in MW2.4
Replies: 101
Views: 44417

Re: Sonar HC-SR04 Support now implemented in MW2.4

Awesome, I now have the debug displaying with the estimated altitude being used for altitude reading.

The SONAR box in the control list does not activate green like it does in your video. Does this mean that altitude hold will not work? Any ideas what I might be doing wrong?
by dryflyer
Sat Apr 04, 2015 11:36 pm
Forum: Software development
Topic: Sonar HC-SR04 Support now implemented in MW2.4
Replies: 101
Views: 44417

Re: Sonar HC-SR04 Support now implemented in MW2.4

Thank you so much for the code.

I cannot enable the SONAR in the gui. The box is there and I can select it but it doesn't activate green.
There is no value showing in the ALT box. Only the second debug field is working. The first debug is stuck with a 1. The third and fourth fields have 0.
by dryflyer
Sat Apr 04, 2015 11:52 am
Forum: Software development
Topic: Sonar HC-SR04 Support now implemented in MW2.4
Replies: 101
Views: 44417

Re: Sonar HC-SR04 Support now implemented in MW2.4

So I have been able to compile the code successfully. Not getting any response from the Baro or Sonar within the MultiWiiGui. Using a HRSC-04 and Multiwii and Megapirate AIO Flight Controller w/FTDI (ATmega 2560) V2.0 from HobbyKing. Has anyone got any advice for me? Also, how do I get the debug val...
by dryflyer
Fri Apr 03, 2015 11:05 pm
Forum: Software development
Topic: Sonar HC-SR04 Support now implemented in MW2.4
Replies: 101
Views: 44417

Re: Sonar HC-SR04 Support now implemented in MW2.4

My first issue occurs when I add the generic sonar support to sensors.cpp. I've tried to interpret your instructions several ways but get different compile errors. I don't want to go any further if I'm already getting errors. If I follow your instructions I get this error. Sensors.cpp: In function '...
by dryflyer
Fri Apr 03, 2015 12:13 pm
Forum: Software development
Topic: Sonar HC-SR04 Support now implemented in MW2.4
Replies: 101
Views: 44417

Re: Sonar HC-SR04 Support now implemented in MW2.4

I love your work. Have you been able to fly with sonar altitude hold? Can we see a vid?

I've tried incorporating your code with the standard 2.4 code but I get compiling errors. Can you provide a link to the 2.4 code with your changes included?