night199uk - In sensesp is there a way to read ...

In sensesp is there a way to read a configuration item from one object in another object? I have a linear transform object that converts the tank level to current volume. tankLevel (IN) * tankCapacity (ConfigItem) = currentVolume separately, I want to output the tank capacity as an SK path... tanks.freshWater.x.capacity. I don't want to have to configure the capacity in two locations. but tank_volume.multiplier is private.
2 Replies
night199uk
night199ukOP6mo ago
So is there a way to do something like: auto capacity_constant_sensor = new sensesp::FloatConstantSensor(linear_transform.multiplier, 0, ....);
Matti Airas
Matti Airas5mo ago
This comes a bit late, but you could inherit a new class from Linear and add the accessor there.

Did you find this page helpful?