mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-03 20:24:13 -04:00
Change baseband floats to normalize at +/-1.0.
This commit is contained in:
parent
a5ed3b20b4
commit
ef86848139
10 changed files with 35 additions and 26 deletions
|
@ -49,7 +49,7 @@ public:
|
|||
|
||||
if( count >= samples_per_update ) {
|
||||
const float max_squared_f = max_squared;
|
||||
const int32_t max_db = complex16_mag_squared_to_dbv_norm(max_squared_f);
|
||||
const int32_t max_db = mag2_to_dbv_norm(max_squared_f * (1.0f / (32768.0f * 32768.0f)));
|
||||
callback({ max_db, count });
|
||||
|
||||
max_squared = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue