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

Fixes/more controls #52

Closed

Conversation

spcampbell
Copy link

This works for pan/tilt but needs buttons. Will do that soon.

Copy link
Owner

@The-EG The-EG left a comment

Choose a reason for hiding this comment

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

Sorry, but these changes would make the plugin unusable by other users as-is.

Comment on lines +67 to +70
pan_relative: { use: ko.observable(false), value: ko.observable(undefined), min: ko.observable(-4480), max: ko.observable(4480), step: ko.observable(0) },
pan_speed: { use: ko.observable(false), value: ko.observable(undefined), min: ko.observable(0), max: ko.observable(100), step: ko.observable(1) },
tilt_absolute: { use: ko.observable(false), value: ko.observable(undefined), min: ko.observable(0), max: ko.observable(100), step: ko.observable(1) },
tilt_relative: { use: ko.observable(false), value: ko.observable(undefined), min: ko.observable(0), max: ko.observable(100), step: ko.observable(1) },
tilt_relative: { use: ko.observable(false), value: ko.observable(undefined), min: ko.observable(-1920), max: ko.observable(1920), step: ko.observable(0) },
Copy link
Owner

Choose a reason for hiding this comment

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

Min, max and step should never be hard coded here.
They are values reported by the camera and different cameras have different values. If you've got a camera that is misbehaving by reporting bad values then a different approach would be needed, such as what I've proposed in #51

Comment on lines -94 to -98
save_user_settings: { use: ko.observable(false) },
restore_user_settings: { use: ko.observable(false) },
restore_factory_settings: { use: ko.observable(false) },
pan_reset: { use: ko.observable(false) },
tilt_reset: { use: ko.observable(false) },
Copy link
Owner

Choose a reason for hiding this comment

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

If these are deleted then users with cameras that report these controls will have errors.

@The-EG
Copy link
Owner

The-EG commented Aug 31, 2021

Also, if you want to contribute, please target the rc branch.

@spcampbell
Copy link
Author

spcampbell commented Aug 31, 2021 via email

@The-EG The-EG deleted the branch The-EG:fixes/more_controls October 15, 2021 13:57
@The-EG The-EG closed this Oct 15, 2021
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.

2 participants