compute_signature¶
- lsst.ts.ess.common.sensor.compute_signature(input_str: str, delimiter: str) int ¶
Compute the signature of the sensor telemetry.
The computation is based on the C function that can be found on page 55 of CSAT3B 3-D anemometer.pdf
- Parameters:
- input_str
str
The string of telemetry for which to compute the signature.
- delimiter: `str`
The delimiter used in input_str.
- input_str
- Returns:
int
The signature.
Notes
By experiment it was found that the description of the input string on page 55 of the document is incorrect. The description states that all data from “x” to “c” are used but by implementing the C function in a C source file and calling the function it was established that only “x” up to “d” are used. For compatibility sake, the input string is expected to contain the value of “c” plus a leading delimiter and this Python implementation strips that value and delimiter before computing the signature.