ros-drivers / flir_ptu

ROS driver for FLIR pan-tilt units
http://wiki.ros.org/flir_ptu_driver
14 stars 37 forks source link

Driver was crashing. Change nulls and emptys to 0s to allow typecasti… #35

Closed TheDash closed 7 years ago

TheDash commented 7 years ago

Driver was crashing on a real PTU. This happened because the very first request made to the PTU after powering on (not initialize sequence) was returning a null/empty character.

To prevent this crashing and to make sure the user doesn't have to launch twice, this will turn any emptys/nulls to "0" so that typecasting works.