cleanup old sm pm args (#30241)

* cleanup sm pm

* fix controlsd

* fix
This commit is contained in:
Adeeb Shihadeh
2023-10-13 23:27:04 -07:00
committed by GitHub
parent 9e24a11f17
commit b68cfbb332
8 changed files with 41 additions and 64 deletions
+4 -7
View File
@@ -40,9 +40,9 @@ def apply_a_weighting(measurements: np.ndarray) -> np.ndarray:
class Mic:
def __init__(self, pm):
self.pm = pm
def __init__(self):
self.rk = Ratekeeper(RATE)
self.pm = messaging.PubMaster(['microphone'])
self.measurements = np.empty(0)
@@ -93,11 +93,8 @@ class Mic:
self.update()
def main(pm=None):
if pm is None:
pm = messaging.PubMaster(['microphone'])
mic = Mic(pm)
def main():
mic = Mic()
mic.micd_thread()