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
Enhanced Octave decoder and decoding explanation #3
Conversation
…nd decoder explanation; adds two recordings @1225 baud
Also there's a synchronization error calculation in a Google sheet. I'm not sure what's the best way to include it. Any thoughts on this? |
Hmm, is the synchronization error calculation based on empirically collected values, or where's it sourced from? You could include it as a JSON file, perhaps... but not sure! Ready for merge? |
The calculation is completely based on the SoftModem implementation. So in the sheet the values in capitals are calculated in the same manner as in the code. Are the calculations visible when clicking on the individual cells? Don't know if you can see this, as I only allowed viewing the file and not modification. I could make a markdown table out of the results, but then the formulas get lost 😖 Not yet ready, I'll add another image and move the images into a subfolder. |
Ah, yes, the calcs are:
What's your intent with the spreadsheet, just as a utility for devs working On Wed, Jun 8, 2016 at 4:37 PM, Richard Meister notifications@github.com
|
I started making this sheet because there were different offsets for different parameters. This made me curious, as there was no hint in the code. Just four sets of parameters to chose. |
Now ready 😄 |
Before merging this, I want to request that you add the images (at least) to an Also - perhaps soon, what do you think about some tests? Perhaps in Jasmine, or another test framework of your choice? |
Ah, that makes sense. Ignored the complete folder. Yeah, I imagine a test that automatically reads a recorded signal and feeds the decoder. Does this match your conception of tests? |
Are you familiar with unit vs. integration testing? My thought was that if One issue is that we won't generate precisely the same audio when we I use Jasmine in many other codebases, so you could look at, for example, it uses jasmine (see its package.json) and has some simple tests in it. On Wed, Jun 8, 2016 at 5:58 PM, Richard Meister notifications@github.com
|
Well I've heard these terms and also have written some unit tests before, but I would not say I'm an expert in testing. Though I'll try my best :) Is this really a problem? If we encode some data and the decoder correctly detects it, why re-encode? Thanks for sharing the example, I'll have a look at Jasmine. |
No, not really a problem, just starting to think through how the tests are Cool!
|
Anything missing here? |
All good, thanks! Sorry, had forgotten to check again and actually merge. |
Perfect, Thanks :) |
* Enhanced Octave decoder and decoding explanation (#3) * decoder works in Octave (at least with 1225 baud); adds demodulator and decoder explanation; adds two recordings @1225 baud * add one more explaining figure; moves figures to subdir * minor change to one figure * adds .npmignore to ignore matlab folder * adds matlab folder to Bower ignores * adds a working encoder, tested 'physically' with an Arduino' (#4)
Finally the decoder written in Octave works. I added a longer description about the demodulation and decoding process.