Skip to content

Commit 88c840a

Browse files
committed
remove comments
1 parent 3fb897b commit 88c840a

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/bitbots_behavior/bitbots_blackboard/bitbots_blackboard/capsules/game_status_capsule.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,5 +129,5 @@ def gamestate_callback(self, gamestate_msg: GameState) -> None:
129129
self.last_update = self._node.get_clock().now().nanoseconds / 1e9
130130
self.gamestate = gamestate_msg
131131

132-
def whistle_detection_callback(self, msg) -> None: # MSG type is assumed to be bool for now, prototyping
133-
self.whistle_detected = msg.data # This stays true after the first whistle detection which is incorrect
132+
def whistle_detection_callback(self, msg) -> None:
133+
self.whistle_detected = msg.data

src/bitbots_misc/bitbots_whistle_detector/bitbots_whistle_detector/whistle_detector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def detect_whistle(self, audio, sample_rate):
6262

6363
ratio = whistle_energy / total_energy
6464

65-
return ratio > 0.6 # TODO: Tune, worked well on my Laptop
65+
return ratio > 0.6
6666

6767

6868
def main(args=None) -> None:

0 commit comments

Comments
 (0)