352 Commits

Author SHA1 Message Date
linuswck 3125e7cff0 gui: add transconductance cfg to the pd_mon_form 2025-03-24 12:38:39 +08:00
linuswck 10f79615e8 bump pglive to v0.8.3 2025-03-24 11:38:32 +08:00
linuswck 8f272023bb rename mainwindow->main_window 2025-03-20 17:18:02 +08:00
linuswck 0a0274b183 Add nix run .#kirdy_gui support 2025-03-12 13:26:20 +08:00
linuswck b536a22234 cleanup 2025-03-12 11:22:36 +08:00
linuswck f1fa89caa5 Add pyproject.toml 2025-03-11 18:26:27 +08:00
linuswck 458e593c25 gui: status display OPP & OTP alarm msgs 2025-03-11 16:13:18 +08:00
linuswck 12697dedc1 gui: improve PID autotune and fix UI bugs
- PID autotune now can run in polling rate that saturate the task queue
2025-03-11 16:08:46 +08:00
linuswck 49fed878dc gui: rm apply polling rate button
- Not intuitive. Now apply immediately after value is changed
2025-03-10 18:43:02 +08:00
linuswck 044219f78f gui: display more device info & improve usability
- Reduce the severity of setting a polling rate that is too high
- Display warning messages on the right side of the bottom bar with a warning icon
- Add check thermostat settings if 0 is set in any of the output limit field
- Display the warning icon beside the connection related message when Kirdy disconnected
2025-03-10 18:42:55 +08:00
linuswck e5cc5c4cb9 driver: add fn to check the fullness of task queue 2025-03-10 18:11:21 +08:00
linuswck 041b5ea159 gui: rm pid params unit 2025-03-10 11:05:45 +08:00
linuswck e9ceb41613 Add rust-overlay
- This fixes rust nix build error in nixos 24.11 pkgs
2025-03-07 17:42:11 +08:00
linuswck 54e3e85815 Revert "test"
This reverts commit 15288dcefc.
2025-03-07 16:05:01 +08:00
linuswck 5344cac0d6 Update Laser Diode Max OUT Current (300mA->307.2mA) 2025-03-04 18:34:50 +08:00
linuswck 15288dcefc test 2025-02-24 11:29:10 +08:00
linuswck e1661ab023 Bump pglive version 2025-02-18 11:57:55 +08:00
linuswck ac6f620d52 bump pglive version and rm pglive patch 2025-02-14 18:34:30 +08:00
linuswck 71be1093d6 Update pglive patch for pglive repo PR #45 2025-02-14 14:43:04 +08:00
linuswck 7a43ece873 fix typo in filename 2025-02-13 18:32:54 +08:00
linuswck 086fe70122 gui: fix error in pyqtgraph 0.13.7 2025-02-07 11:05:58 +08:00
linuswck 8fb94e68f9 update nixpkgs version 23.11-> 24.11 2025-02-07 11:04:59 +08:00
linuswck 7c447ed7c0 pglive: Fix range_width bugs at boundary condition 2025-01-28 17:36:37 +08:00
linuswck 980f7364ac driver: rm debugging msg print 2025-01-28 16:38:51 +08:00
linuswck 62ff2cb048 gui: specified range width for graphs 2025-01-28 16:38:51 +08:00
linuswck 749f19b105 ld_current_out_ctrl_timer: lower current ramp rate
- Ld current ramp now updates in 250Hz (< 500Hz IIR filter cutoff
    frequency) for pwr_exc_protector
2025-01-28 16:38:51 +08:00
linuswck bd83a8fc92 LdPwrExcProtector: Use IIR filter for OPP logic
- Do not use the built-in analog watchdog
- IIR Filter limits ADC noise to be below 1 LSB
- Fix false positive error for the overpower protection due to ADC noise
2025-01-28 16:38:38 +08:00
linuswck c1855f6a08 pd_mon: Add iir filter to voltage readings
- analog wdg behaviour is unchanged
2025-01-27 12:44:27 +08:00
linuswck 46889ac330 gui: update param tree temperature related limit 2025-01-27 12:43:58 +08:00
linuswck 6f273e85cc driver, example: fix typo 2025-01-27 12:43:58 +08:00
linuswck fb6fd47c69 gui: fix temp setpoint line plotting error
- pg_live 0.7.2 -> 0.8 updates the get_x&y_range() logic in LiveAxisRange
- If data_connector's max_point = 1. At tick = 1, there would be
    IndexError as it tries to access the second index of the data
    directly without checking the length.
2025-01-27 12:43:58 +08:00
linuswck 09827b4d44 gui: Configure graph's range width and bound
- Upgrade to pglive v0.8
- Add a new patch for new options for specifying display range width
    and bound
2025-01-27 12:43:58 +08:00
linuswck 5909ead681 max1968: Add IIR filter to Tec Readings 2025-01-27 12:43:58 +08:00
linuswck d8ddd5fb24 gui: rm generated ui_x.py files 2025-01-27 12:43:58 +08:00
linuswck 6db375d6b8 Fix incorrect Adc filter settings name 2025-01-27 12:43:58 +08:00
linuswck 7267794e49 gui: Change label texts 2025-01-27 12:43:54 +08:00
linuswck 3affe47293 gui: display warning msg if recv-ed 2025-01-24 18:32:33 +08:00
linuswck 7bdb7e48df driver: Add handling for warning msgs 2025-01-24 18:32:33 +08:00
linuswck b3a9f61648 cmd_handler: add warning msgs for cmd with val clamped 2025-01-24 18:32:33 +08:00
linuswck e1ee3ec959 firmware: clamp input against invalid value 2025-01-24 18:32:27 +08:00
linuswck 7f9dc37c10 cmd_handler: Add msg to InvalidCmd Response 2025-01-24 16:59:49 +08:00
linuswck 9bec46490d gui: Include firmware rev in About msg box 2025-01-24 16:59:49 +08:00
linuswck 0e707e3d6b driver: Add fn to get the firmware rev 2025-01-24 16:59:49 +08:00
linuswck c2806aee27 cmd_handler: Add new cmd to for commit hash 2025-01-24 16:59:49 +08:00
linuswck 1b7f5bc3e4 firmware: add commit hash into firmware 2025-01-24 16:59:49 +08:00
linuswck 227d9d4877 laser: Short LD terminals when ld pwr is off 2025-01-24 16:59:49 +08:00
linuswck 6ad41c8502 gui: Do not use window title in info_box
- info_box does not resize with the title length
- On MacOS, the title won't be displayed
2025-01-24 16:59:49 +08:00
linuswck 2a6db53dc8 driver: wait for the read_response task to complete before connection retry 2025-01-23 11:52:02 +08:00
linuswck 7dd551201e driver: fix bug in failing to emit error msg 2025-01-23 11:52:02 +08:00
linuswck 753a16ab8e driver: Close incoming awaitable fn if queue is full 2025-01-23 11:52:02 +08:00