-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vario sound is broken #18
Comments
I already reported how to fix, didn't I?
-caz
…On Mon, Mar 9, 2020 at 11:27 AM Andrey Lebedev ***@***.***> wrote:
Vario sound is reported to be broken by several users:
variod sound output broken
The audio was odd. It may have been that things were just incorrectly
configured, but my original image, the audio seems very normal compared to
a vario. This seemed like it was modulated with a low frequency square
wave. I.e. it would just cut in and out constantly.
This gives an idea how it sounds like:
https://drive.google.com/file/d/1qQbzZW6G60sZAgtfYW7ZHiwC8yZA5LGY/view
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#18?email_source=notifications&email_token=AAWALMS44RX4DSYPWFKQAY3RGUYILA5CNFSM4LEOZPJKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4ITVGIKQ>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAWALMVCMMQQNB5TZXTWJXDRGUYILANCNFSM4LEOZPJA>
.
--
-caz, caz at caztech dot com, 503-six one zero - five six nine nine(m)
|
Um, really? Where can I find it? |
Some hints from @CazYokoyama (taken from #11):
|
This is the configuration we had before variod with XCSoar providing audio vario. Back then the update rate was 2Hz which was too slow and really annoying. It is much better now but leaves us without volume control over stick remote / .xci file and without STF (speed to fly) audio. |
The noise is indeed coming from |
MS5611 -> sensord -> tcp 4353 -> variod +-> tcp 4352 -> xcsoar + |
Is anyone working for variod? I built debug environment on raspbian. If no one, I will. |
@CazYokoyama please do! BTW, I've found that recent gcc (9.2 in my case) cannot build variod anymore, but it is fixable with this patch: diff --git a/Makefile b/Makefile
index 4a017e7..591d422 100644
--- a/Makefile
+++ b/Makefile
@@ -22,7 +22,7 @@ doc:
doxygen
variod: $(OBJ)
- $(CXX) $(LIBS) -g -o $@ $^
+ $(CXX) -g -o $@ $^ $(LIBS)
install: variod
install -D variod $(BINDIR)/$(EXECUTABLE) |
variod was invented by Andreas Wasserbauer. A friend of Michael Huber. |
One other thing: @mihu-ov : If so, we maybe can remove variod as XCSoar vario is good enough ? |
Andi has no github account yet but answered on the Redmine, I think he is OK with me copying his reply below. My personal preference (and I am no software developer) would be to keep audio vario in variod even if this causes an additional interface to XCSoar because I think
Hi caz, kedder I don't have a github account yet, so let me just give you an update concerning variod this way. First of all: It's of course ok to work on XCSoar's vario output, but it is very limited compared to variod. So it's probably quite some work to overcome it's current limitations. Concerning the broken variod: I know about the issue and I am working on it by replacing the low-level alsa code with pulseaudio. I think that won't be too much work, and should also allow us to have XCSoar and variod output sound in parallel. cheers Andi |
That's awesome news, @mihu-ov! |
Status update for anyone following this: Andreas Wasserbauer started working on porting variod to pulse audio. This will allow us to fix the sound output and also support mixing vario output with XCSoar own events (e.g. airspace warnings). Andreas doesn't have github account and was posting updates on openvario redmine server (http://www.openvario.org/redmine/boards/3/topics/1773). Unfortunately redmine doesn't work anymore (Internal error) and we've lost the only communication link with him. @linuxianer99, can we get redmine back up at least until we figure this issue out? |
Andi is the Redmine admin, I have contacted him by mail as it is too late to call him. |
I've included pulseaudio server into the image in my branch here: https://github.com/kedder/meta-openvario/tree/warrior-pulseaudio We can use it as soon as variod is ported to pulseaudio. |
So I was playing with variod, ported to pulsaudio, that Andreas sent me (pushed it to my fork, if anyone is interested). And it seems like we were barking at the wrong tree this whole time. Jittering sound is still there. However, after closing investigation (I've stopped variod service and ran it in foreground with
My impression is that Does it ring any bells? |
Here's the output of sensord that is run in foreground:
These errors are probably from the fact that I don't have any sensors connected. |
Hmmm ... This is a good point ! I will hav a look at sensord tomorrow. Adding some detection at the start or something like this ... |
Unless for testing using variod without pressure sensors is pretty pointless, isn´t it? |
I've uploaded packages to my PPA. If you want to try it out, you can do this: echo src kedder http://openvario.lebedev.lt/opkg/armv7vet2hf-neon/ >> /etc/opkg/customfeeds.conf
opkg update
opkg install pulseaudio-server variod-testing
newgrp - audio and restart the openvario. Next time it loads, you can run I'll play with it a bit more today evening too. |
|
@mihu-ov that means pulseaudio server is not running |
@mihu-ov Oh, I remembered now. You have to do this:
and restart the device. This will be incorporated into the image with pulseaudio, but if you install server manually, you have to do that. |
Thank you kedder, variod is beeping on my desk now and alsamixer shows the single volume bar. I got a bit confused as there were actually two beep tones coming from the speaker but I had XCSoar audio vario turned on as well, so variod and XCSoar audio really go together now! Looks good! (And I need to go back to work but this was too exciting ;-) |
Oh, that's a great news! I'll make a PR this evening.
Yeah, same here :) |
OK, after newgrp - audio autostart works again. Great news indeed! |
Ok, so I learned something about the issue: If I replace sensord with simple
Again, I don't have any sensor hardware. I need someone with the hardware to check if it really works. I'll create couple of images for testing on real hardware. |
@mihu-ov, please test this image with real sensors: That's an image for PQ070 display (I'm assuming you've got that one) and pulseaudio-enabled variod. You should hear the nice vario once xcsoar starts, that should react to pressure changes on the sensors. |
Believe it or not, this is exactly what happens right after starting my OV with the new image without any tweaks or fiddling :-) |
Wow :) Please also check the responsiveness. How quickly does it react to pressure changes? That's something I'm not very confident about. Would it be possible to compare this aspect with the old image? |
I don´t think we can test responsiveness on pressure sensor data easily (even with an avionics test set). As we have changed variod only maybe we could generate a data file, replay it with sensord, record the speaker output and compare the two files? |
On old variod the vario tone was recalculated each 100ms. On the new variod the tone is calculated when pulseaudio sound buffer is exhausted. I'm not sure how big that buffer is and whether it will make any difference in terms of responsiveness. I don't expect hard numbers here, only if new version "feels laggy" or not. |
Vario sound is reported to be broken by several users:
This gives an idea how it sounds like: https://drive.google.com/file/d/1qQbzZW6G60sZAgtfYW7ZHiwC8yZA5LGY/view
The text was updated successfully, but these errors were encountered: