cfclient 2017.4__py3-none-any.whl → 2025.12.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- cfclient/__init__.py +16 -11
- cfclient/configs/config.json +4 -3
- cfclient/configs/input/Generic_OS_X.json +1 -0
- cfclient/configs/input/Joystick.json +1 -0
- cfclient/configs/input/PS3_Mode_1.json +1 -0
- cfclient/configs/input/PS3_Mode_2.json +1 -0
- cfclient/configs/input/PS3_Mode_3.json +1 -0
- cfclient/configs/input/PS4_Mode_1.json +1 -0
- cfclient/configs/input/PS4_Mode_2.json +1 -0
- cfclient/configs/input/PS4_shoulder_btns_yaw.json +1 -0
- cfclient/configs/input/xbox360_mode1.json +1 -0
- cfclient/configs/log/PID_tuning/Attitude.json +46 -0
- cfclient/configs/log/PID_tuning/Attitude_rate.json +46 -0
- cfclient/configs/log/PID_tuning/Position.json +46 -0
- cfclient/configs/log/PID_tuning/Velocity.json +46 -0
- cfclient/configs/log/PID_tuning_components/Pitch.json +22 -0
- cfclient/configs/log/PID_tuning_components/Pitch_rate.json +22 -0
- cfclient/configs/log/PID_tuning_components/Position_x.json +22 -0
- cfclient/configs/log/PID_tuning_components/Position_y.json +22 -0
- cfclient/configs/log/PID_tuning_components/Position_z.json +22 -0
- cfclient/configs/log/PID_tuning_components/Roll.json +22 -0
- cfclient/configs/log/PID_tuning_components/Roll_rate.json +22 -0
- cfclient/configs/log/PID_tuning_components/Velocity_x.json +22 -0
- cfclient/configs/log/PID_tuning_components/Velocity_y.json +22 -0
- cfclient/configs/log/PID_tuning_components/Velocity_z.json +22 -0
- cfclient/configs/log/PID_tuning_components/Yaw.json +22 -0
- cfclient/configs/log/PID_tuning_components/Yaw_rate.json +22 -0
- cfclient/gui.py +44 -9
- cfclient/headless.py +3 -12
- cfclient/resources/log_param_doc.json +1 -0
- cfclient/ui/connectivity_manager.py +198 -0
- cfclient/ui/dialogs/about.py +53 -36
- cfclient/ui/dialogs/about.ui +23 -3
- cfclient/ui/dialogs/anchor_position_dialog.py +252 -0
- cfclient/ui/dialogs/anchor_position_dialog.ui +138 -0
- cfclient/ui/dialogs/basestation_mode_dialog.py +185 -0
- cfclient/ui/dialogs/basestation_mode_dialog.ui +186 -0
- cfclient/ui/dialogs/bootloader.py +448 -85
- cfclient/ui/dialogs/bootloader.ui +387 -134
- cfclient/ui/dialogs/cf2config.py +4 -4
- cfclient/ui/dialogs/cf2config.ui +3 -4
- cfclient/ui/dialogs/inputconfigdialogue.py +24 -19
- cfclient/ui/dialogs/inputconfigdialogue.ui +53 -30
- cfclient/ui/dialogs/lighthouse_bs_geometry_dialog.py +220 -0
- cfclient/ui/dialogs/lighthouse_bs_geometry_dialog.ui +110 -0
- cfclient/ui/dialogs/lighthouse_system_type_dialog.py +93 -0
- cfclient/ui/dialogs/lighthouse_system_type_dialog.ui +121 -0
- cfclient/ui/dialogs/logconfigdialogue.py +401 -101
- cfclient/ui/dialogs/logconfigdialogue.ui +117 -72
- cfclient/ui/icons/bl.webp +0 -0
- cfclient/ui/icons/bolt.webp +0 -0
- cfclient/ui/icons/cf21.webp +0 -0
- cfclient/ui/icons/checkmark_black.png +0 -0
- cfclient/ui/icons/checkmark_white.png +0 -0
- cfclient/ui/icons/create.png +0 -0
- cfclient/ui/icons/delete.png +0 -0
- cfclient/ui/icons/flapper.webp +0 -0
- cfclient/ui/icons/tag.webp +0 -0
- cfclient/ui/main.py +328 -258
- cfclient/ui/main.ui +184 -80
- cfclient/ui/pluginhelper.py +7 -1
- cfclient/ui/pose_logger.py +116 -0
- cfclient/ui/tab_toolbox.py +208 -0
- cfclient/ui/tabs/ColorLEDTab.py +752 -0
- cfclient/ui/tabs/ConsoleTab.py +48 -13
- cfclient/ui/{toolboxes → tabs}/CrtpSharkToolbox.py +19 -34
- cfclient/ui/tabs/ExampleTab.py +9 -16
- cfclient/ui/tabs/FlightTab.py +437 -325
- cfclient/ui/tabs/GpsTab.py +14 -20
- cfclient/ui/tabs/LEDRingTab.py +277 -0
- cfclient/ui/tabs/LogBlockDebugTab.py +20 -27
- cfclient/ui/tabs/LogBlockTab.py +35 -35
- cfclient/ui/tabs/LogClientTab.py +85 -0
- cfclient/ui/tabs/LogTab.py +50 -27
- cfclient/ui/tabs/ParamTab.py +443 -57
- cfclient/ui/tabs/PlotTab.py +23 -25
- cfclient/ui/tabs/TuningTab.py +292 -0
- cfclient/ui/tabs/__init__.py +12 -2
- cfclient/ui/tabs/colorLEDTab.ui +624 -0
- cfclient/ui/tabs/consoleTab.ui +46 -0
- cfclient/ui/tabs/flightActionContainer.ui +103 -0
- cfclient/ui/tabs/flightTab.ui +724 -237
- cfclient/ui/tabs/{ledTab.ui → ledRingTab.ui} +63 -46
- cfclient/ui/tabs/lighthouse_tab.py +714 -0
- cfclient/ui/tabs/lighthouse_tab.ui +430 -0
- cfclient/ui/tabs/locopositioning_tab.py +606 -389
- cfclient/ui/tabs/locopositioning_tab.ui +370 -253
- cfclient/ui/tabs/logClientTab.ui +52 -0
- cfclient/ui/tabs/logTab.ui +1 -1
- cfclient/ui/tabs/paramTab.ui +204 -3
- cfclient/ui/tabs/tuningTab.ui +773 -0
- cfclient/ui/widgets/ai.py +37 -39
- cfclient/ui/widgets/hexspinbox.py +16 -10
- cfclient/ui/widgets/plotter.ui +39 -47
- cfclient/ui/widgets/plotwidget.py +57 -22
- cfclient/ui/widgets/super_slider.py +112 -0
- cfclient/ui/wizards/__init__.py +0 -0
- cfclient/ui/wizards/bslh_1.png +0 -0
- cfclient/ui/wizards/bslh_2.png +0 -0
- cfclient/ui/wizards/bslh_3.png +0 -0
- cfclient/ui/wizards/bslh_4.png +0 -0
- cfclient/ui/wizards/bslh_5.png +0 -0
- cfclient/ui/wizards/lighthouse_geo_bs_estimation_wizard.py +465 -0
- cfclient/utils/config_manager.py +5 -4
- cfclient/utils/input/__init__.py +77 -19
- cfclient/utils/input/inputinterfaces/wiimote.py +2 -2
- cfclient/utils/input/inputreaderinterface.py +17 -7
- cfclient/utils/input/inputreaders/__init__.py +17 -0
- cfclient/utils/logconfigreader.py +245 -25
- cfclient/utils/logdatawriter.py +3 -1
- cfclient/utils/periodictimer.py +1 -1
- cfclient/utils/ui.py +336 -0
- cfclient/utils/zmq_led_driver.py +5 -0
- cfclient/utils/zmq_param.py +6 -0
- cfclient/version.py +34 -1
- cfclient-2025.12.1.dist-info/METADATA +70 -0
- cfclient-2025.12.1.dist-info/RECORD +152 -0
- {cfclient-2017.4.dist-info → cfclient-2025.12.1.dist-info}/WHEEL +1 -1
- {cfclient-2017.4.dist-info → cfclient-2025.12.1.dist-info}/entry_points.txt +0 -1
- cfclient-2025.12.1.dist-info/licenses/LICENSE.txt +350 -0
- {cfclient-2017.4.dist-info → cfclient-2025.12.1.dist-info}/top_level.txt +1 -0
- cfconfig/Makefile +51 -0
- cfconfig/configblock.py +111 -0
- cfloader/__init__.py +41 -55
- cfzmq/__init__.py +22 -14
- cfclient/ui/dialogs/cf1config.py +0 -265
- cfclient/ui/dialogs/cf1config.ui +0 -260
- cfclient/ui/tab.py +0 -96
- cfclient/ui/tabs/LEDTab.py +0 -169
- cfclient/ui/toolboxes/ConsoleToolbox.py +0 -69
- cfclient/ui/toolboxes/DebugDriverToolbox.py +0 -107
- cfclient/ui/toolboxes/__init__.py +0 -45
- cfclient/ui/toolboxes/consoleToolbox.ui +0 -62
- cfclient/ui/toolboxes/debugDriverToolbox.ui +0 -86
- cfclient-2017.4.dist-info/DESCRIPTION.rst +0 -3
- cfclient-2017.4.dist-info/METADATA +0 -22
- cfclient-2017.4.dist-info/RECORD +0 -104
- cfclient-2017.4.dist-info/metadata.json +0 -1
- /cfclient/{icon-256.png → ui/icons/icon-256.png} +0 -0
- /cfclient/ui/{toolboxes → tabs}/crtpSharkToolbox.ui +0 -0
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
#
|
|
3
|
+
# || ____ _ __
|
|
4
|
+
# +------+ / __ )(_) /_______________ _____ ___
|
|
5
|
+
# | 0xBC | / __ / / __/ ___/ ___/ __ `/_ / / _ \
|
|
6
|
+
# +------+ / /_/ / / /_/ /__/ / / /_/ / / /_/ __/
|
|
7
|
+
# || || /_____/_/\__/\___/_/ \__,_/ /___/\___/
|
|
8
|
+
#
|
|
9
|
+
# Copyright (C) 2021-2023 Bitcraze AB
|
|
10
|
+
#
|
|
11
|
+
# This program is free software; you can redistribute it and/or
|
|
12
|
+
# modify it under the terms of the GNU General Public License
|
|
13
|
+
# as published by the Free Software Foundation; either version 2
|
|
14
|
+
# of the License, or (at your option) any later version.
|
|
15
|
+
#
|
|
16
|
+
# This program is distributed in the hope that it will be useful,
|
|
17
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19
|
+
# GNU General Public License for more details.
|
|
20
|
+
# You should have received a copy of the GNU General Public License
|
|
21
|
+
# along with this program; if not, write to the Free Software
|
|
22
|
+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
|
23
|
+
# MA 02110-1301, USA.
|
|
24
|
+
|
|
25
|
+
"""
|
|
26
|
+
Dialog box used to change lighthouse system type. Used from the lighthouse tab.
|
|
27
|
+
"""
|
|
28
|
+
import logging
|
|
29
|
+
|
|
30
|
+
import cfclient
|
|
31
|
+
from PyQt6 import QtWidgets
|
|
32
|
+
from PyQt6 import uic
|
|
33
|
+
|
|
34
|
+
__author__ = 'Bitcraze AB'
|
|
35
|
+
__all__ = ['LighthouseSystemTypeDialog']
|
|
36
|
+
|
|
37
|
+
logger = logging.getLogger(__name__)
|
|
38
|
+
|
|
39
|
+
(lighthouse_system_widget_class, connect_widget_base_class) = (
|
|
40
|
+
uic.loadUiType(
|
|
41
|
+
cfclient.module_path + '/ui/dialogs/lighthouse_system_type_dialog.ui')
|
|
42
|
+
)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
class LighthouseSystemTypeDialog(QtWidgets.QWidget, lighthouse_system_widget_class):
|
|
46
|
+
|
|
47
|
+
PARAM_GROUP = 'lighthouse'
|
|
48
|
+
PARAM_NAME = 'systemType'
|
|
49
|
+
|
|
50
|
+
VALUE_V1 = 1
|
|
51
|
+
VALUE_V2 = 2
|
|
52
|
+
|
|
53
|
+
def __init__(self, helper, *args):
|
|
54
|
+
super(LighthouseSystemTypeDialog, self).__init__(*args)
|
|
55
|
+
self.setupUi(self)
|
|
56
|
+
|
|
57
|
+
self._helper = helper
|
|
58
|
+
|
|
59
|
+
self._close_button.clicked.connect(self.close)
|
|
60
|
+
|
|
61
|
+
self._radio_btn_v1.toggled.connect(self._type_toggled)
|
|
62
|
+
self._radio_btn_v2.toggled.connect(self._type_toggled)
|
|
63
|
+
|
|
64
|
+
self._curr_type = 0
|
|
65
|
+
|
|
66
|
+
def get_system_type(self):
|
|
67
|
+
system_type = self.VALUE_V2
|
|
68
|
+
|
|
69
|
+
values = self._helper.cf.param.values
|
|
70
|
+
if self.PARAM_NAME in values[self.PARAM_GROUP]:
|
|
71
|
+
system_type = int(values[self.PARAM_GROUP][self.PARAM_NAME])
|
|
72
|
+
|
|
73
|
+
return system_type
|
|
74
|
+
|
|
75
|
+
def showEvent(self, event):
|
|
76
|
+
self._curr_type = self.get_system_type()
|
|
77
|
+
|
|
78
|
+
if self._curr_type == self.VALUE_V1:
|
|
79
|
+
self._radio_btn_v1.setChecked(True)
|
|
80
|
+
elif self._curr_type == self.VALUE_V2:
|
|
81
|
+
self._radio_btn_v2.setChecked(True)
|
|
82
|
+
|
|
83
|
+
def _type_toggled(self, *args):
|
|
84
|
+
new_type = self.VALUE_V2
|
|
85
|
+
|
|
86
|
+
if self._radio_btn_v1.isChecked():
|
|
87
|
+
new_type = self.VALUE_V1
|
|
88
|
+
elif self._radio_btn_v2.isChecked():
|
|
89
|
+
new_type = self.VALUE_V2
|
|
90
|
+
|
|
91
|
+
if new_type != self._curr_type:
|
|
92
|
+
self._curr_type = new_type
|
|
93
|
+
self._helper.cf.param.set_value(self.PARAM_GROUP + '.' + self.PARAM_NAME, self._curr_type)
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<ui version="4.0">
|
|
3
|
+
<class>Form</class>
|
|
4
|
+
<widget class="QWidget" name="Form">
|
|
5
|
+
<property name="windowModality">
|
|
6
|
+
<enum>Qt::ApplicationModal</enum>
|
|
7
|
+
</property>
|
|
8
|
+
<property name="geometry">
|
|
9
|
+
<rect>
|
|
10
|
+
<x>0</x>
|
|
11
|
+
<y>0</y>
|
|
12
|
+
<width>280</width>
|
|
13
|
+
<height>252</height>
|
|
14
|
+
</rect>
|
|
15
|
+
</property>
|
|
16
|
+
<property name="windowTitle">
|
|
17
|
+
<string>System type</string>
|
|
18
|
+
</property>
|
|
19
|
+
<layout class="QVBoxLayout" name="verticalLayout_4">
|
|
20
|
+
<item>
|
|
21
|
+
<layout class="QVBoxLayout" name="verticalLayout">
|
|
22
|
+
<item>
|
|
23
|
+
<layout class="QVBoxLayout" name="verticalLayout_6">
|
|
24
|
+
<item>
|
|
25
|
+
<widget class="QLabel" name="label_2">
|
|
26
|
+
<property name="text">
|
|
27
|
+
<string>Note: Calibration and geometry data is lost if the system type is changed.</string>
|
|
28
|
+
</property>
|
|
29
|
+
<property name="wordWrap">
|
|
30
|
+
<bool>true</bool>
|
|
31
|
+
</property>
|
|
32
|
+
</widget>
|
|
33
|
+
</item>
|
|
34
|
+
</layout>
|
|
35
|
+
</item>
|
|
36
|
+
<item>
|
|
37
|
+
<layout class="QHBoxLayout" name="horizontalLayout">
|
|
38
|
+
<item>
|
|
39
|
+
<widget class="QGroupBox" name="groupBox">
|
|
40
|
+
<property name="title">
|
|
41
|
+
<string>System type</string>
|
|
42
|
+
</property>
|
|
43
|
+
<layout class="QVBoxLayout" name="verticalLayout_3">
|
|
44
|
+
<item>
|
|
45
|
+
<layout class="QVBoxLayout" name="verticalLayout_2">
|
|
46
|
+
<item>
|
|
47
|
+
<widget class="QRadioButton" name="_radio_btn_v1">
|
|
48
|
+
<property name="text">
|
|
49
|
+
<string>Lighthouse V1</string>
|
|
50
|
+
</property>
|
|
51
|
+
</widget>
|
|
52
|
+
</item>
|
|
53
|
+
<item>
|
|
54
|
+
<widget class="QRadioButton" name="_radio_btn_v2">
|
|
55
|
+
<property name="text">
|
|
56
|
+
<string>Lighthouse V2</string>
|
|
57
|
+
</property>
|
|
58
|
+
</widget>
|
|
59
|
+
</item>
|
|
60
|
+
</layout>
|
|
61
|
+
</item>
|
|
62
|
+
</layout>
|
|
63
|
+
</widget>
|
|
64
|
+
</item>
|
|
65
|
+
</layout>
|
|
66
|
+
</item>
|
|
67
|
+
<item>
|
|
68
|
+
<layout class="QVBoxLayout" name="verticalLayout_5">
|
|
69
|
+
<item>
|
|
70
|
+
<spacer name="verticalSpacer">
|
|
71
|
+
<property name="orientation">
|
|
72
|
+
<enum>Qt::Vertical</enum>
|
|
73
|
+
</property>
|
|
74
|
+
<property name="sizeHint" stdset="0">
|
|
75
|
+
<size>
|
|
76
|
+
<width>20</width>
|
|
77
|
+
<height>40</height>
|
|
78
|
+
</size>
|
|
79
|
+
</property>
|
|
80
|
+
</spacer>
|
|
81
|
+
</item>
|
|
82
|
+
</layout>
|
|
83
|
+
</item>
|
|
84
|
+
<item>
|
|
85
|
+
<widget class="Line" name="line">
|
|
86
|
+
<property name="orientation">
|
|
87
|
+
<enum>Qt::Horizontal</enum>
|
|
88
|
+
</property>
|
|
89
|
+
</widget>
|
|
90
|
+
</item>
|
|
91
|
+
<item>
|
|
92
|
+
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
|
93
|
+
<item>
|
|
94
|
+
<spacer name="horizontalSpacer">
|
|
95
|
+
<property name="orientation">
|
|
96
|
+
<enum>Qt::Horizontal</enum>
|
|
97
|
+
</property>
|
|
98
|
+
<property name="sizeHint" stdset="0">
|
|
99
|
+
<size>
|
|
100
|
+
<width>40</width>
|
|
101
|
+
<height>20</height>
|
|
102
|
+
</size>
|
|
103
|
+
</property>
|
|
104
|
+
</spacer>
|
|
105
|
+
</item>
|
|
106
|
+
<item>
|
|
107
|
+
<widget class="QPushButton" name="_close_button">
|
|
108
|
+
<property name="text">
|
|
109
|
+
<string>Close</string>
|
|
110
|
+
</property>
|
|
111
|
+
</widget>
|
|
112
|
+
</item>
|
|
113
|
+
</layout>
|
|
114
|
+
</item>
|
|
115
|
+
</layout>
|
|
116
|
+
</item>
|
|
117
|
+
</layout>
|
|
118
|
+
</widget>
|
|
119
|
+
<resources/>
|
|
120
|
+
<connections/>
|
|
121
|
+
</ui>
|