|
31 | 31 | from PyQt6 import QtWidgets |
32 | 32 | from PyQt6 import uic |
33 | 33 | from PyQt6.QtCore import QVariant, Qt, QAbstractTableModel, pyqtSignal |
34 | | -from cflib.localization import LighthouseBsGeoEstimator |
35 | 34 | from cflib.localization import LighthouseSweepAngleAverageReader |
36 | 35 | from cflib.crazyflie.mem import LighthouseBsGeometry |
37 | 36 | from cfclient.ui.wizards.lighthouse_geo_bs_estimation_wizard import LighthouseBasestationGeometryWizard |
@@ -138,13 +137,6 @@ def __init__(self, lighthouse_tab, *args): |
138 | 137 | self._lighthouse_tab = lighthouse_tab |
139 | 138 |
|
140 | 139 | self._estimate_geometry_button.clicked.connect(self._estimate_geometry_button_clicked) |
141 | | - self._simple_estimator = LighthouseBsGeoEstimator() |
142 | | - self._estimate_geometry_simple_button.clicked.connect(self._estimate_geometry_simple_button_clicked) |
143 | | - try: |
144 | | - if not self._simple_estimator.is_available(): |
145 | | - self._estimate_geometry_simple_button.setEnabled(False) |
146 | | - except Exception as e: |
147 | | - print(e) |
148 | 140 |
|
149 | 141 | self._write_to_cf_button.clicked.connect(self._write_to_cf_button_clicked) |
150 | 142 |
|
@@ -205,10 +197,6 @@ def _estimate_geometry_button_clicked(self): |
205 | 197 | self._base_station_geometry_wizard.show() |
206 | 198 | self.hide() |
207 | 199 |
|
208 | | - def _estimate_geometry_simple_button_clicked(self): |
209 | | - self._sweep_angle_reader.start_angle_collection() |
210 | | - self._update_ui() |
211 | | - |
212 | 200 | def _write_to_cf_button_clicked(self): |
213 | 201 | if len(self._newly_estimated_geometry) > 0: |
214 | 202 | self._lighthouse_tab.write_and_store_geometry(self._newly_estimated_geometry) |
|
0 commit comments