Skip to content

Resolving last issues with remote control of Capistrano device#812

Merged
Sunderlandkyl merged 4 commits intoPlusToolkit:masterfrom
dzenanz:capistranoImprovements
Jun 3, 2021
Merged

Resolving last issues with remote control of Capistrano device#812
Sunderlandkyl merged 4 commits intoPlusToolkit:masterfrom
dzenanz:capistranoImprovements

Conversation

@dzenanz
Copy link
Copy Markdown
Contributor

@dzenanz dzenanz commented May 27, 2021

This should make it possible to work without warnings even if not all parameters are specified in the config file. There will be companion PlusLibData PR.

CC: @jamesobutler.

dzenanz added 4 commits May 27, 2021 18:25
This is similar to Interson implementation.
Since Capistrano implementation ignores these parameters,
if they are not set in configuration files they cause problems
for remote command execution. So we initialize them in constructor.
It is covered by standardized image parameter FrequencyMhz.
This affects how it is specified in the configuration files.
@adamrankin
Copy link
Copy Markdown
Member

Does this need to be tested with hardware?

@dzenanz
Copy link
Copy Markdown
Contributor Author

dzenanz commented May 28, 2021

I already tested it, and it works for me. But I would prefer if @jamesobutler or @adamaji confirmed it works for them too.

@jamesobutler
Copy link
Copy Markdown
Contributor

Yes I should test with Hardware. I will be able to do this next week after the Federal holiday on Monday.

Copy link
Copy Markdown
Contributor

@jamesobutler jamesobutler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was able to test using the UltrasoundRemoteControl module in 3D Slicer. I was able to observe Capistrano imaging depth and frequency appropriately updating.

For UltrasoundRemoteControl I had to make a minor update to allow higher frequencies as it currently supports 2-5 MHz as defined here while the Capistrano API supports up to 50 MHz as an option. It is also difficult to use the sliders for that module, but that's an area of improvement for that module and not PlusLib. @Sunderlandkyl Have you used this module recently and identified possible areas of improvement?

@Sunderlandkyl Sunderlandkyl merged commit 27163f6 into PlusToolkit:master Jun 3, 2021
@Sunderlandkyl
Copy link
Copy Markdown
Contributor

I haven't used it recently, but there are several projects that use qSlicerUltrasoundDoubleParameterSlider to change ultrasound parameters. What difficulty did you have with the Sliders?

Sunderlandkyl pushed a commit to PlusToolkit/PlusLibData that referenced this pull request Jun 3, 2021
@jamesobutler
Copy link
Copy Markdown
Contributor

Frequency slider was limited to 2-5 while my device supports 10-50. It also supports discrete values rather than continuous for frequency and imaging depth. Typing the value into the spinboxes next the to the slider would often get rejected due to typing a 2 digit number resulting in it get rejected when the first digit was entered. I really had to drag the slider and then let it go over a valid value to trigger the update.

@dzenanz dzenanz deleted the capistranoImprovements branch June 3, 2021 12:55
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