FraunhoferIOSB / camera_aravis

A ROS1 driver for GenICam based GigE and USB3 cameras.
Other
22 stars 15 forks source link

fix: only reset PTP clock when in "Faulty" or "Disabled" state #23

Closed tonyromarock closed 2 years ago

tonyromarock commented 2 years ago

resetPtpClock() should be called when a camera is an erroneous state. The old implementation would also reset the PTP slave state, even when the camera was still setting up in the "Listening" state.

The PR makes sure, that the camera is truly reset if it ends up in the state "Faulty" or "Disabled"

Page 7 of this document has a float chart of the different states and transitions a PTP slave goes through.