Distance wrapping invalidates lock sum
When the distance reported by the IDS3010 over-/underflows and wraps, the calculated amplitude and phase are incorrect. Ideas towards a reaolution:
- detect wrapping, and unwrap the result manually
- This unwrapping can be done in a component between the laser receiver and the lock in accumulator
- The computation width will likely need to be adjusted, as additional bits are required to add/subtract corrective summands
- the laser data input of the accumulator then also needs to be signed to allow for negative numbers