Topic: A solution regarding sensors
We have a FLS sensor on a unit but this sensor is a resistance FLS and when vehicle is moving sends inaccurate data. Our customer only need fuel data when vehicle is stop so we are going to go with bellow scenario:
1. Create a movement detection sensor (custom digital sensor) based on speed parameter and set it to be 0 when vehicle is moving and 1 when vehicle is stopped.
2. Create a FLS sensor based on parameter receiving from resistance FLS installed on vehicle.
3. Set movement detection sensor as validator of FLS sensor in a way when vehicle is moving we receive unknown value from FLS and when it stops we receive value of FLS.
Our problem now is that customer want to receive FLS value when vehicle is stopped and receive last known value of FLS (last value before start moving) when vehicle is moving.
Please share your ideas how we can to it. You may offer us totally different way to reach this result.
I think there should be a trick to store last known value of FLS some where and replace it when FLS value got unknown.
As more detailed explanation:
consider FLS shows 200lt when unit is in stationary state. Then units start moving and we should see 200lt all the time that unit is moving. Then it after stops again we should see a value like 150lt.