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

Camera not moving absolute #33

Open
HarryJeacock opened this issue Oct 17, 2024 · 0 comments
Open

Camera not moving absolute #33

HarryJeacock opened this issue Oct 17, 2024 · 0 comments

Comments

@HarryJeacock
Copy link

HarryJeacock commented Oct 17, 2024

var bearing1to1 = Math.Round(CameraAngleHelper.ConvertToMinus1To1((int)CameraConnection.PositionB + CameraConnection.CameraOffset), 4);
var moveVector = new PTZVector
{
				PanTilt = new Vector2D { x = (float)bearing1to1 } // pan amount
};
var speed = new PTZSpeed { PanTilt = new Vector2D { x = 0.1f } };
await _cameraInstance.MoveAsync(MoveType.Absolute, moveVector, speed);

I have a problem where camera position isn't moving when I do absolute movement Bearing1to1 value comes out at 0.34 and current position is 0.94 anyone know the issue? swapping it to movetype.Relative works too but i need absolute

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

No branches or pull requests

1 participant