Commit graph

93 commits

Author SHA1 Message Date
Ahmet Inan b09bf0632c added toggle for integer or float scaling 2015-01-03 11:17:23 +01:00
Ahmet Inan bd7ec1f0bc improved timing down to +-300ppm samples per line
- used milliseconds instead of seconds for timing
- did summations in milliseconds till end
- did rounding instead of truncation at critical places
2015-01-03 00:36:05 +01:00
Ahmet Inan 7a7d535165 reduced value buffer size to 2 seconds
just enough to decode scottie DX from sync to sync:

5x 345.6ms color scans =  1728.0ms
2x 9.0ms sync pulses = 18.0ms
4x 1.5ms porches = 6.0ms

1752.0ms total
2015-01-02 19:43:12 +01:00
Ahmet Inan 80eabf5acb normalize amplitude from avg absolute amplitude 2015-01-02 13:25:36 +01:00
Ahmet Inan 3974468399 reset mismatch counter on parity correction 2015-01-02 12:30:44 +01:00
Ahmet Inan 15b364fe72 wrap vpos instead of resetting to 0 on max 2015-01-02 12:25:54 +01:00
Ahmet Inan 7a33c225bd reset mismatch counter on begin of image 2015-01-02 12:18:04 +01:00
Ahmet Inan 8263145a50 fixed overflow and sync timeout handling in robot36 decoder 2015-01-02 12:10:32 +01:00
Ahmet Inan 8421a984e7 let decoders decide about vpos 2015-01-01 19:24:55 +01:00
Ahmet Inan 63e949332d do correct sync extrapolation 2015-01-01 18:57:01 +01:00
Ahmet Inan a69b4089f5 WIP: replaced linear with much more flexible circular buffer 2015-01-01 17:06:48 +01:00
Ahmet Inan 3743d023f9 allocate value buffer of next power of 2 size 2014-12-30 22:35:56 +01:00
Ahmet Inan dac04cbe86 made icons compatible with older devices 2014-12-18 20:41:47 +01:00
Ahmet Inan 8d7b0e0f50 always show notification, even when in foreground 2014-12-18 13:59:55 +01:00
Ahmet Inan cfe3f35aad made notification persisting 2014-12-18 13:54:04 +01:00
Ahmet Inan e0017ffa5f also set large icon in notification 2014-12-18 13:50:52 +01:00
Ahmet Inan 5c2ffa07a2 added notification icons 2014-12-18 13:46:23 +01:00
Ahmet Inan d0523a3990 WIP: added notification that the decoder is still running 2014-12-17 22:59:12 +01:00
Ahmet Inan 1426bbb105 allow only one instance of Robot36 2014-12-17 21:32:34 +01:00
Ahmet Inan fbffdf3d6d reduced "grey" area to help with noise immunity 2014-12-17 17:02:20 +01:00
Ahmet Inan 30ced94775 reverse logic to flatten drawCanvas() 2014-12-16 16:39:35 +01:00
Ahmet Inan 801852e73b redraw canvas before leaving surfaceChanged() 2014-12-16 16:32:41 +01:00
Ahmet Inan 3a1e0d6201 fixed crash in debug mode 2014-12-14 17:37:14 +01:00
Ahmet Inan 0bd958b4d7 increased leader timeout tolerance 2014-12-14 15:03:08 +01:00
Ahmet Inan 738ac87fce increased break length tolerance 2014-12-14 13:59:02 +01:00
Ahmet Inan 3d6f915b75 improved calibration header detection
"gray" area doesn't work very well with the calibration detection code
2014-12-13 20:31:06 +01:00
Ahmet Inan 8d36624e94 added new icon set 2014-12-12 23:32:03 +01:00
Ahmet Inan d5d9ba379f removed '-' from WrasseSC2_180 string 2014-12-12 17:55:08 +01:00
Ahmet Inan 8d73fe002c wait for worker thread to finish 2014-12-12 17:32:43 +01:00
Ahmet Inan 60b8c48d9b WIP: experimental async decoding
it will continue decoding in background.
to stop decoder, you must exit application.
also removed some unneeded synchronizations to make it more responsive.
2014-12-12 15:42:24 +01:00
Ahmet Inan bb183cb80e do correct vertical scaling in case we want a higher horizontal resolution 2014-12-12 11:41:21 +01:00
Ahmet Inan 0d5407f090 reduced max height so we can enjoy more of the maximally scaled picture 2014-12-12 10:47:13 +01:00
Ahmet Inan 8828cbc753 Revert "lets stretch and crop the image a bit around the edges .."
This reverts commit 435c1be418.

just because everyone is doing it doesnt mean we should do it.
2014-12-12 09:23:55 +01:00
Ahmet Inan 435c1be418 lets stretch and crop the image a bit around the edges ..
.. so that nobody will notice our fucked front and back porches. ;-(
2014-12-11 23:19:43 +01:00
Ahmet Inan 8b3dbb08b9 only correct line after 5 mismatches when in sync mode 2014-12-11 19:19:51 +01:00
Ahmet Inan 5fa1a6cff6 increment vpos in decoders 2014-12-11 18:17:34 +01:00
Ahmet Inan e79484e1ca introduced free_running state variable 2014-12-11 17:14:20 +01:00
Ahmet Inan 9137d729d8 only correct line number if were free running 2014-12-11 15:35:37 +01:00
Ahmet Inan e4d0264d95 made value_blur nicer to use and took care of edges 2014-12-11 14:17:24 +01:00
Ahmet Inan 40eb37a40d better move whole line in scottie decoder 2014-12-10 23:42:50 +01:00
Ahmet Inan 56e75346d2 WIP: added correct scottie decoder 2014-12-10 23:39:08 +01:00
Ahmet Inan 2c52be93cd store Bitmap as PNG in Pictures directory 2014-12-10 18:04:36 +01:00
Ahmet Inan 88a13d9a9b WIP: save image when finished 2014-12-10 13:29:59 +01:00
Ahmet Inan 308874b131 moved code generator to utils/blur.c, moved generated code to blur_generated.rsh 2014-12-09 20:07:55 +01:00
Ahmet Inan 48deba6305 added manual adjustment of blur 2014-12-09 15:48:26 +01:00
Ahmet Inan 5c85f130b1 added gaussian blur to help with noisy conditions
manual adjustment following soon.
2014-12-08 23:03:26 +01:00
Ahmet Inan 30a6d256ba made decoder.rs independent of new modes 2014-12-07 22:26:03 +01:00
Ahmet Inan 4e48eb185c added Wrasse SC2-180 Mode
definitively need to do something about to reduce the numbers of places needed to be changed to add a new mode ..
2014-12-07 20:38:16 +01:00
Ahmet Inan 32efb41613 added "gray" area between data and control signal to improve sync detection 2014-12-07 18:14:37 +01:00
Ahmet Inan 9446d5976e draw then decode to help minimize visual delay 2014-12-07 15:23:10 +01:00