-
Notifications
You must be signed in to change notification settings - Fork 15
feat: port QSC Q-SYS Camera ruby driver #300
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
base: master
Are you sure you want to change the base?
Conversation
…e/port-ruby-driver Pulled from master
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, I think we should implement the other common camera interfaces
https://github.com/PlaceOS/drivers/blob/master/drivers/sony/camera/cgi_protocol.cr#L8
This implements a bunch of other interfaces
https://github.com/PlaceOS/driver/blob/master/src/placeos-driver/interface/camera.cr#L6
If there is a function that you can't implement due to limitations of what this camera can do, then just have it raise an error
drivers/qsc/q_sys_camera.cr
Outdated
# encoding: ASCII-8BIT | ||
# frozen_string_literal: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah not needed, all strings are UTF8 in crystal
That was a ruby hack to get around windows encoding leaking in if people edited files on windows
Description of the change
Ported existing ruby driver code to crystal.
Note - TODO
I didn't add the spec test for this driver. It depends on a driver with generic_name:Mixer - like the q_sys_control.cr - and I'm not sure of the expected return values.