Regarding event.motion.speedThreshold

mail2bishnoi2 years ago

Hi Anton,

I have set a value for event.motion.speedThreshold in properties file. Will it make speed zero below speedThresold value or set the motion attribute to false?

Anton Tananaev2 years ago

It will affect motion attribute. It won't zero the speed value.

mail2bishnoi2 years ago

Thanks for your prompt reply.

I think to set the speed value to zero when the last reported position and current position are the same. For example:-

PreviousLatitude == currentLatitude && previousLongitude == currentLongitude ==> set speed to zero

if it's ok, I can open a PR to implement this.

Anton Tananaev2 years ago

Not sure about it. What problem are you trying to solve?

mail2bishnoi2 years ago

Some devices report the speed greater than zero even if they are still or some time devices hanged when they are still. By doing this speed will automatically become zero. No need of speedThresold check.

Anton Tananaev2 years ago

Sounds like a device issue to me. Just zeroing speed value for all devices is not a good solution.