Skip to content

Commit

Permalink
Merge branch 'master' into experiments_white-noise-static
Browse files Browse the repository at this point in the history
  • Loading branch information
duembgen committed Sep 18, 2020
2 parents 96bb61e + 75536fa commit 06dcbb6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions src/crazyflie_crtp/crazyflie_crtp/gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ def publish_audio_dict(self):
#self.get_logger().warn(f"Duplicate values in fbins! unique values:{len(set(fbins))}")
return
frequencies = all_frequencies[fbins]
self.get_logger().info(f"Read fbins: {fbins}")
except:
#self.get_logger().warn(f"Ignoring fbins: {fbins[:5]}")
return
Expand Down
1 change: 0 additions & 1 deletion src/topic_plotter/topic_plotter/audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ def listener_callback_spectrum(self, msg_spec, name="static", eps=YLIM_MIN):
spectrum_sum = normalize_rows(spectrum_sum, NORMALIZE)
spectrum_product = combine_rows(spectrum + 1e-1, "product", keepdims=True)
spectrum_product = normalize_rows(spectrum_product, NORMALIZE)
#print("spectrum_product:", np.min(spectrum_product), np.max(spectrum_product))

spectrum_plot = np.r_[spectrum_product, spectrum_sum]
labels = ["product", "sum"]
Expand Down

0 comments on commit 06dcbb6

Please sign in to comment.