Aswin - When source priorities is set for a cer...
When source priorities is set for a certain path,is it still possible to also access the same path but from another source?
The background for this question can be found in tge link below. Basically it is someone that uses two direction sensors to calculate mast rotation using a plugin. These two different sensors mess up another plugin. If source priorities is set then the second plugin performs fine but the first plugin no longer functions because it cannot access the heading sensor in the mast.
https://github.com/Asw1n/advancedwind/issues/4
5 Replies
not possible, you can't save and eat the cake
the other plugin would need to implement source pinning or hack it by using a custom path and republish data from one source on the alternative path
Is it an option not to use source priorities, have the first plugin to catch the path, calculate mast rotation, and only call next() on one of the sources. This way the rest of the system only gets one direction.
there is no way currently to define the order that plugins handle a value - so you can't tell what is "the first plugin"
But as I understand it, catching a delta comes before a subscription.
Yes, deltainputhandler can modify incoming data so that two sources look like one