Function sick::skipToPublishFrequency
Defined in File Conversions.h
Function Documentation
-
inline uint16_t sick::skipToPublishFrequency(int skip)
Converts a skip value into a “publish frequency” value.
- Parameters:
skip – The number of scans to skip between each measured scan. For a 25Hz laser, setting ‘skip’ to 0 makes it publish at 25Hz, ‘skip’ to 1 makes it publish at 12.5Hz.
- Returns:
“Publish Frequency” ie. One out of every n_th scan will be published. 1 is publish every scan. 2 is publish at half rate, and so on.