zero distance when ignition is off

Stan8 years ago

Hi,
I noticed that distance is increasing when the device is not moving due to errors from GPS.
Is there a setting to not increase the distance when the ignition is off?
Thanks.

Anton Tananaev8 years ago

You can use coordinates filtering.

Stan8 years ago

Hi Anton,
thanks for your answer.
Unfortunately, this will filter out valid coordinates (when the vehicle is turning slowly or when in a traffic jam).
I was wondering whether it is possible to use computed attributes to override the Distance. Something like this:
Distance = Ignition == false ? 0 : Distance
Is this a valid approach?
If yes, could you please help me with the syntax of the computed attribute expression?
Similarly, I want to define a new attribute:
Idle = Ignition == true AND Motions == false
How would this attribute definition look like?
Thanks for your help,
Stan

Anton Tananaev8 years ago

You can override distance, but what about total distance?

It's possible to define any new attribute. Probably your expression will look something like this:

ignition && motion

... assuming that you have both available.

Stan8 years ago

Thanks Anton.
This is a good point (total distance). Is the total distance calculated based on the distance attribute and if yes, is this calculation done before the computation of the computed attributes?
Regards,
Stan

Anton Tananaev8 years ago

Calculation is done at the same time, so there is no way to override distance.