nksreera / rush-osd-development

Automatically exported from code.google.com/p/rush-osd-development
0 stars 0 forks source link

RSSI smoothing is very slow (KVOSD 2.3) #29

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When my RSSI changes rapidly, then it takes about 5 seconds for the displayed 
RSSI to adjust to the new value. That's way too slow to be practical for when 
flying in hilly areas and accidently going out of LOS.

The problem is in calculateRssi().

In order to test the smoothing, I created a Perl test script that calls 
calculateRssi() at a simulated 10Hz and displays the actual as well as smoothed 
RSSI data. See attachments.

I can't seem to make sense of how the smoothing works in this line so I'm not 
sure if it's correct:
rssi_Int += ( ( (signed int)((aa*rssiSample) - rssi_Int )) / rssiSample );  // 
Smoothing the readings 

Original issue reported on code.google.com by craig.ma...@gmail.com on 15 Jan 2015 at 11:22

Attachments:

GoogleCodeExporter commented 9 years ago
The test script output.

Original comment by craig.ma...@gmail.com on 15 Jan 2015 at 11:29

Attachments: