introlab / odas

ODAS: Open embeddeD Audition System
MIT License
780 stars 248 forks source link

How does plotting work? #67

Closed alexengbloom closed 6 years ago

alexengbloom commented 6 years ago

I am modifying mod_ssl_process in mod_ssl.c. Even after I comment out the code that handles ssl calculation, I see a lot of points being plotted on the ODAS WEB as shown in the images below. The values seem to be randomly generated as the plotted values change whenever I restart odascore; it does not change after boot.

Could you explain why this is happening so that I can understand the issue?

screen shot 2018-05-30 at 17 41 23 screen shot 2018-05-30 at 17 43 32 screen shot 2018-05-30 at 17 44 07 screen shot 2018-05-30 at 17 44 51
FrancoisGrondin commented 6 years ago

It seems that as you are commenting the SSL processing, the system does not compute any beamforming energy on the sphere. It then tries to find the maximum values on non-initialized arrays, which can lead to this random result.

alexengbloom commented 6 years ago

The problem can be fixed by commenting out obj->nPots = 0; from function pots_zero(pots_obj * obj).