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 for physical joystick (ONVIF)- issue #189 #190

Merged
merged 2 commits into from
May 16, 2022

Conversation

Orvani
Copy link
Contributor

@Orvani Orvani commented May 11, 2022

Fixes for physical joystick (ONVIF)- issue #189

  1. Fix bug - pt did not receive a s stop command;
    Activate stop command on joystick release; (physical joystick got defined as DigitalPTZ for some reason)
    changed internal bool DigitalPTZ => PTZSettings == null;
    to
    internal bool DigitalPTZ = false;

  2. Feature:
    Change pan & tilt speed in correlation with joystick position;
    used tanh function for more sensitive transformation of joystick position to pan/tilt speed;

Fixes for physical joystick (ONVIF)-  issue ispysoftware#189

1. Fix bug - pt did not receive a s stop command;
Activate stop command on joystick release; (physical joystick got defined as DigitalPTZ for some reason)
changed internal bool DigitalPTZ => PTZSettings == null;
to
internal bool DigitalPTZ = false;

2. Feature:
Change pan & tilt speed in correlation with joystick position;
used tanh function for more sensitive transformation of joystick position to pan/tilt speed;
Copy link
Owner

@ispysoftware ispysoftware left a comment

Choose a reason for hiding this comment

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

forcing DigitalPTZ to false will break digital PTZ.

should be

internal bool DigitalPTZ => _cameraControl.Camobject.ptz == -1;

fix bug - physical ptz missing stop command, without break of digital PTZ
internal bool DigitalPTZ => _cameraControl.Camobject.ptz == -1;
@ispysoftware ispysoftware merged commit 8e15c3c into ispysoftware:master May 16, 2022
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