-
Notifications
You must be signed in to change notification settings - Fork 2
Dataclasses #39
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
Merged
Merged
Dataclasses #39
Changes from all commits
Commits
Show all changes
63 commits
Select commit
Hold shift + click to select a range
40cfcd2
Use QThread
M-Chan 59cfaf2
using 'worker' instead of 'commsThread'
M-Chan 6cc7d7e
ruff formatting
M-Chan e19d952
fixes disable/enable polling
M-Chan e4ffe1c
removed moved code
M-Chan 01b390e
fixed sendSeries
M-Chan 5c690a5
use 'worker'
M-Chan 1341921
fix function naming for ruff
M-Chan 86604f3
attempt to safely delete threads and stop timers
M-Chan 314dde6
using 'worker'
M-Chan 553e679
use pyqt slots and signals to manage threads and timers
M-Chan 3ef5cdc
fix threading and remove obsolete code + comments
M-Chan f72946b
add dataclasses for polling statuses
M-Chan 5fddac0
uses dataclasses for polling status
M-Chan 20a4cea
uses dataclasses for polling status
M-Chan d3a8faa
uses dataclasses for polling status
M-Chan 90a68d4
clean up imports
M-Chan 09ca129
uses dataclasses for polling status
M-Chan 51f95d3
uses dataclasses for polling status
M-Chan e7cdd51
add the CoordinateSystemStatus
M-Chan c960c23
pass the gathered status
M-Chan e35c1af
receive the status
M-Chan 0d0da76
use ip of geobrick 3 in lab18
M-Chan 969296c
add individual motor_status
M-Chan dc7edd4
use status dataclass values to update screen
M-Chan 90e109b
comment out unused code
M-Chan 1492d5e
add back watch window and queue
M-Chan 0f558fe
delete unused code
M-Chan ae22bce
add commented-out old update_func function for reference
M-Chan 28d9e01
Merge branch 'new-main' into dataclasses
M-Chan d02fc4e
tidy up comments and namings
M-Chan 8d942d8
Delete repeated code
M-Chan b25430b
add test geobrick ip to launch.json
M-Chan 5b672a6
restore default ip
M-Chan 7c020e1
strip $ for ppmacs and make global_status of type str
M-Chan 01aff5a
revert back to commsThread
M-Chan cf95da5
plural dataclasses and add both amplifier_statuses to account for ppmacs
M-Chan ef378d7
do velocity calculation beforehand and call setText once
M-Chan 8a4253f
change motor_row to motor and call i2t_fault_status instead of amplif…
M-Chan bd85742
separate out sendCommand
M-Chan 46e51a1
add back the pollrate calculation
M-Chan dee4846
fix typo and hence function
M-Chan 3578028
move i65 to 'global' ControllerStatus
M-Chan 332222d
do the success validation earlier at the sendCommand stage
M-Chan 4fc20aa
keep velocity as a numerical value before it is set as a text
M-Chan e77fdd3
remove print statements
M-Chan 65a05a3
only update if success; else print error
M-Chan a8274dd
no longer return ControllerStatus
M-Chan 8676498
clean up dataclasses
M-Chan 9b055c1
add pmac variables undervolt, overvolt and overtemp
M-Chan 1626a3b
don't fix it at 6 variables for motors response just in case
M-Chan 40c16d6
don't forget overcurrent value
M-Chan 274268a
fix overcurrent value
M-Chan 462c533
only powerpmacs give overcurrent values
M-Chan bc35b89
keep it as a bool
M-Chan 1e89460
account for the undervolt, overvolt and overtemp for ppmacs
M-Chan ff41d6a
move undervolt, overvolt and overtemp to be global values
M-Chan ea12a72
there'll always be an overcurrent value given
M-Chan f2df445
unpackage the status for the geobrick whilst parsing the polled response
M-Chan dc7e01b
add typehinting for motors and use enumerate for motor_no
M-Chan f6d9b1a
use bus_under_voltage, bus_over_voltage and over_temp direct from sta…
M-Chan dc12c87
use overcurrent and i2t_fault_status direct from motors dataclass
M-Chan af11586
remove commented out code
M-Chan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.