mirror of
https://github.com/xdsopl/robot36.git
synced 2026-01-04 15:29:59 +01:00
forgot to square these two 2.0f also while changing amplitude to power
This commit is contained in:
parent
c5f6a0b7db
commit
09581214d6
|
|
@ -264,8 +264,8 @@ void decode(int samples) {
|
|||
float cnt_pow = dot(cnt_baseband, cnt_baseband);
|
||||
float dat_pow = dot(dat_baseband, dat_baseband);
|
||||
|
||||
int cnt_active = dat_pow < 2.0f * cnt_pow;
|
||||
int dat_active = cnt_pow < 2.0f * dat_pow;
|
||||
int cnt_active = dat_pow < 4.0f * cnt_pow;
|
||||
int dat_active = cnt_pow < 4.0f * dat_pow;
|
||||
|
||||
uchar cnt_level = debug_mode && cnt_active ? 127.5f - 127.5f * cnt_value : 0.0f;
|
||||
uchar dat_level = dat_active ? 127.5f + 127.5f * dat_value : 0.0f;
|
||||
|
|
|
|||
Loading…
Reference in a new issue