Is there to specify the PTZ speed in the Absolute command?
private void SetAbsolutePositionClicked(object sender, RoutedEventArgs e)
{
PTZMoveAbsoluteCommandData absoluteCommand = new PTZMoveAbsoluteCommandData();
double.TryParse(\_panBox.Text, System.Globalization.NumberStyles.Any, System.Globalization.CultureInfo.InvariantCulture, out absoluteCommand.Pan);
double.TryParse(\_tiltBox.Text, System.Globalization.NumberStyles.Any, System.Globalization.CultureInfo.InvariantCulture, out absoluteCommand.Tilt);
double.TryParse(\_zoomBox.Text, System.Globalization.NumberStyles.Any, System.Globalization.CultureInfo.InvariantCulture, out absoluteCommand.Zoom);
EnvironmentManager.Instance.PostMessage(new Message(MessageId.Control.PTZMoveAbsoluteCommand, absoluteCommand), \_selectedCamera.FQID);
}
cause it moving really slow unlike the other where you can specify the speed
PTZMoveStartCommandData2 data = new PTZMoveStartCommandData2();
data.Pan = _panContinuousSlider.Value;
data.Tilt = _tiltContinuousSlider.Value;
data.Zoom = _zoomContinuousSlider.Value;
data.PanSpeed = _panSpeedSlider.Value;
data.TiltSpeed = _tiltSpeedSlider.Value;
data.ZoomSpeed = _zoomSpeedSlider.Value;
EnvironmentManager.Instance.PostMessage(new Message(MessageId.Control.PTZMoveStartCommand, data), _selectedCamera.FQID);
I have tried increasing the speed in the management client to 1/1 and it is still moving slow in the absoluteCommand unlike PTZMoveStartCommandData2.
You have accurately described the PTZMoveAbsoluteCommand message and how it uses PTZMoveAbsoluteCommandData. I think you are also using the code from the PTZ and Preset sample.
Unfortunately that is all there is. There is no command doing the same that includes parameters to control the speed.
Thank you for your response.
The challenge we’re facing is that we’re trying to implement a slew-to-cue functionality, where the camera automatically rotates from one zone to another whenever an intrusion is detected in a different zone. To achieve this, we’re using the Absolute Move command, with each zone having predefined position values that determine where the camera should move.
However, we’ve noticed that the camera sometimes rotates quite slowly, which can result in the event being missed before the camera reaches the target position.
Have you encountered this issue before? If so, do you know of any fix, optimization, or alternative approach that could improve the camera’s response time and ensure events are captured more reliably?
I have an idea that this is down to the general setup of the camera and XProtects use thereof. I wonder if you have the same issue if applying a patrolling scheme. My best advise is if you can open a support case with Milestone Technical Support, especially if the issue also happens in patrolling they might have tips and tricks. I have not asked what the camera make and model is but I think this will be important when the concern is a potential general issue in how XProtect handles this camera, so if you open a support case make sure to include this information.
Thinking outside the box (speculation)- If you move the camera with a certain speed (PTZMoveStartCommand) does the camera use this speed in a following absolute move (PTZMoveAbsoluteCommand)? If that is so maybe it can somehow be used in some sort of workaround.
I have tried this approach “If you move the camera with a certain speed (PTZMoveStartCommand) does the camera use this speed in a following absolute move (PTZMoveAbsoluteCommand)? If that is so maybe it can somehow be used in some sort of workaround.“ but it is not using the speed of the PTZMoveStartCommand. I will try to open a support case with Milestone Technical Support. Thank you for your support
Quick update regarding this topic: Today, while reviewing the PTZPreset sample, I noticed that it is possible to specify the movement speed in the PTZMoveAbsoluteCommand. I’m not sure whether this was added recently, but I just wanted to mention it. You can set it between 0 and 1
This hasn’t changed, not as far as I can track. I now believe that it was always there, only it isn’t used in the sample. I am sorry if my answers have been misleading as I suspect they have been.
Were you able to get the wanted behavior using the speed parameter?