NDEVR
API Documentation
MadgwickSimulationSettings.h
1/*--------------------------------------------------------------------------------------------
2Copyright (c) 2020, NDEVR LLC
3tyler.parke@ndevr.org
4 __ __ ____ _____ __ __ _______
5 | \ | | | __ \ | ___|\ \ / / | __ \
6 | \ | | | | \ \ | |___ \ \ / / | |__) |
7 | . \| | | |__/ / | |___ \ V / | _ /
8 | |\ |_|_____/__|_____|___\_/____| | \ \
9 |__| \__________________________________| \__\
10
11Subject to the terms of the Enterprise+ Agreement, NDEVR hereby grants
12Licensee a limited, non-exclusive, non-transferable, royalty-free license
13(without the right to sublicense) to use the API solely for the purpose of
14Licensee's internal development efforts to develop applications for which
15the API was provided.
16
17The above copyright notice and this permission notice shall be included in all
18copies or substantial portions of the Software.
19
20THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
21INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
22PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
23FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
24OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
25DEALINGS IN THE SOFTWARE.
26
27Library: MadgwickSimulator
28File: MadgwickSettings
29Included in API: True
30Author(s): tyler.parke
31 *-----------------------------------------------------------------------------------------**/
32
33#pragma once
34#include "DLLInfo.h"
35#include <NDEVR/QTModelManager.h>
36#include <QWidget>
37namespace Ui
38{
39 class MadgwickSettingsUI;
40}
41namespace NDEVR
42{
46 class NDEVRChartModel;
53 class HARDWARE_WIDGETS_API MadgwickSimulationSettings : public QWidget
54 {
55 public:
61 MadgwickSimulationSettings(QTModelManager* manager, QWidget* parent = nullptr);
73 QSize sizeHint() const override;
78 MadgwickSimulator* simulator() const { return m_simulator; }
79 private:
83 void init();
88 void setAccelerationProfile(const StringView profile);
93 void setGyroProfile(const StringView profile);
97 void saveDataset();
101 void reset();
106 void recordDataset(bool enable);
107 protected slots:
111 private:
112 Ui::MadgwickSettingsUI* ui = nullptr;
113 QTModelManager* m_manager = nullptr;
114 MadgwickSimulator* m_simulator = nullptr;
115
116 GenericOptionsGroup* m_gyro_noise = nullptr;
117 GenericOptionsGroup* m_accel_noise = nullptr;
118 };
119}
A dialog designed to allow the user to navigate a filesytem and select or create one or more files or...
Creates a clean formatted dialog for any number of GenericOptions within a GenericOptionGroup Each op...
void onAccNoiseUpdatedSlot()
Slot called when accelerometer noise settings change.
QSize sizeHint() const override
Returns the recommended size for this widget.
MadgwickSimulationSettings(MadgwickSimulator *simulator, QTModelManager *manager, QWidget *parent=nullptr)
Constructs MadgwickSimulationSettings using an existing simulator.
MadgwickSimulator * simulator() const
Returns the Madgwick simulator being configured.
void onGyroNoiseUpdatedSlot()
Slot called when gyroscope noise settings change.
MadgwickSimulationSettings(QTModelManager *manager, QWidget *parent=nullptr)
Constructs MadgwickSimulationSettings with a new internal simulator.
void onMadgwickUpdatedSlot()
Slot called when the Madgwick filter output is updated.
A simulated device that generates IMU data and runs a Madgwick orientation filter to test and visuali...
A Model subclass that provides charting and data visualization capabilities.
A wrapper around DesignObjectLookup that provides signal and slot functionality and adds rendering ca...
The core String View class for the NDEVR API.
Definition StringView.h:58
The primary namespace for the NDEVR SDK.