Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plugin: Add ADMT Plugin for ADMT4000 #1878

Open
wants to merge 102 commits into
base: dev
Choose a base branch
from

Conversation

JJuanill
Copy link

Adding implementation of ADMT4000 Harmonic Calibration plugin to Scopy

JJuanill added 30 commits May 29, 2024 12:46
…ed library to plugins folder

Signed-off-by: John Lloyd Juanillo <[email protected]>
Signed-off-by: John Lloyd Juanillo <[email protected]>
- Added logic for compatible
- Changed Harmonic Calibration icon
- Changed plugin description

Signed-off-by: John Lloyd Juanillo <[email protected]>
Signed-off-by: John Lloyd Juanillo <[email protected]>
- Reverted C++ standard from 20 to 17

Signed-off-by: John Lloyd Juanillo <[email protected]>
Signed-off-by: John Lloyd Juanillo <[email protected]>
- Changed data graph color to defined method
- Removed redundant plot direction declaration

Signed-off-by: John Lloyd Juanillo <[email protected]>
- Created method for calibration widget
- Removed initial plot and data for acquisition tab

Signed-off-by: John Lloyd Juanillo <[email protected]>
- Renamed acquisition labels

Signed-off-by: John Lloyd Juanillo <[email protected]>
- Added custom spinbox widget
- Styled line edits and combo boxes

Signed-off-by: John Lloyd Juanillo <[email protected]>
- Connected horizontal spinbox to stepper motor control
- Added conversions for real world values to stepper motor attributes
- Added FFT plot for magnitude and phase calibration values

Signed-off-by: John Lloyd Juanillo <[email protected]>
Signed-off-by: John Lloyd Juanillo <[email protected]>
- Added tabs for raw and calibrated graphs
- Converted real-world values to motor values and vice versa
- Moved raw data list to static vector

Signed-off-by: John Lloyd Juanillo <[email protected]>
doun-doughnut and others added 19 commits November 13, 2024 09:22
- Initialized acquisition graph axes

Signed-off-by: dpineda2 <[email protected]>
- Updated import sample behavior
- Changed calibration UI timer rate

Signed-off-by: dpineda2 <[email protected]>
Signed-off-by: John Lloyd Juanillo <[email protected]>
- Adjusted graph behavior for acquisition tab
- Adjusted layout for calibration

Signed-off-by: John Lloyd Juanillo <[email protected]>
- Added guards for controller methods
- Added color map to ADMTStyleHelper

Signed-off-by: John Lloyd Juanillo <[email protected]>
- Set static value updates to 300ms
- Variable graph update interval
- Set acquisition to 16ms
- Added layout for fault register widget

Signed-off-by: John Lloyd Juanillo <[email protected]>
- Added disconnect method for separate threads

Signed-off-by: John Lloyd Juanillo <[email protected]>
Signed-off-by: John Lloyd Juanillo <[email protected]>
- Included input and output for GPIO and disable function based on hardware
- Fixed sequence section not updating on switch tabs
- Added initialize for ADMT DIGIOEN register

Signed-off-by: John Lloyd Juanillo <[email protected]>
- Applied new style method

Signed-off-by: John Lloyd Juanillo <[email protected]>
Signed-off-by: John Lloyd Juanillo <[email protected]>
JJuanill and others added 4 commits January 22, 2025 16:25
- Adjusted calibration tab UI elements

Signed-off-by: John Lloyd Juanillo <[email protected]>
- Added style for checkbox LED

Signed-off-by: U-ANALOG\JJuanill <[email protected]>
Signed-off-by: U-ANALOG\JJuanill <[email protected]>
Signed-off-by: John Lloyd Juanillo <[email protected]>
@andrei47w
Copy link
Contributor

I see the PR is still in progess, but I noticed a few things that might need changing before this is ready for complete review.

  • create an xml for emulator so we can test the plugin without needing the hardware (https://github.com/analogdevicesinc/iio-emu/tree/main/tools)
  • format code using clang-format version 10 (run tools/format.sh)
  • revert change in the main CMakeLists.txt
  • admt/CMakeLists:
    • remove unused liked libs from cmake (scopy-gr-util, scopy-iioutil, scopy-iio-widgets)
    • remove UI_LIST uses
  • all larger stylesheets from inside .cpp files should be moved to qss using the style infrastructure
  • migrate admtstylehelper.cpp to qss style and use Style::getChannelColor instead of redefining colors
  • HorizontalSpinBox::setEnabled argument should be bool ?
  • rebase with main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants