What youâre missing is the import of System.Linq. Please add this somewhere next to existing usings:
using System.Linq;
The FirstOrDefault is an extension method thatâs defined in the Linq namespace. We forgot to mention this in the example. Iâll make sure this gets fixed.
Also does this example cover rotation reconciliation or just position? If not how would you add that?
I believe the approach would be identical to position - youâll want to find the ârotationâ binding (make sure it is bound via CoherenceSync configuration first) and subscribe to its sample receive event. Then in the callback you can calculate the difference in angle between predicted and received values and make a correction if needed.