Permalink
Browse files

Use proper scaling for dBfs

  • Loading branch information...
1 parent a39b07c commit 3d69b7ff80a6437bc8bec832f09b801d4263f407 Nick Foster committed Jul 21, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 python/modes_print.py
View
@@ -36,11 +36,10 @@ def parse(self, message):
reference = float(reference)
timestamp = float(timestamp)
- #TODO this is suspect
if reference == 0.0:
refdb = -150.0
else:
- refdb = 10.0*math.log10(reference)
+ refdb = 20.0*math.log10(reference)
output = "(%.0f %.10f) " % (refdb, timestamp);
try:

0 comments on commit 3d69b7f

Please sign in to comment.