MySensors icon indicating copy to clipboard operation
MySensors copied to clipboard

Feature request: Speed and course for GPS sensor

Open ttytyper opened this issue 6 years ago • 5 comments
trafficstars

Currently the serial protocol supports latitude, longitude and altitude as introduced in #246. That's fine for stationary objects.

But for moving objects it would be nice to also have speed and course. This is particularly useful for dead reckoning. For an example of dead reckoning, check out aprs.fi which often shows moving vehicles with a blue line in front of them, indicating the predicted position based on the last known position, speed and course.

Would it be possible to include these fields in a future version of MySensors?

ttytyper avatar Nov 08 '19 21:11 ttytyper

Not sure how controllers handle them, but perhaps V_WIND and V_DIRECTION can be used?

mfalkvidd avatar Nov 08 '19 21:11 mfalkvidd

Interesting idea. V_DIRECTION certainly sounds like a good option. V_WIND on the other hand, I'm not so sure. Aside from having the wrong name, it doesn't seem to have a defined unit? Perhaps it would be better to make a new value type, such as V_SPEED?

ttytyper avatar Nov 13 '19 15:11 ttytyper

Yes, perhaps it would be. A new value type requires changes to the MySensors library and to all controllers though. Using V_WIND might work with existing versions.

mfalkvidd avatar Nov 13 '19 15:11 mfalkvidd

Understood. I'll use V_WIND or a custom type for now.

Do you think something like V_SPEED could be added in a future version or would it require too much change to be practical?

ttytyper avatar Nov 13 '19 16:11 ttytyper

For MySensors it is mainly a matter of defining what it should be used for, including thinking if there are other use cases that are related, and whether it needs some other settings (is unit implied from the metric setting, or how is the unit defined, etc). I guess we could see mph, km/h, m/s and maybe others?

Then it would be up to the ~30 different controllers to decide if they want to add support, and how they would like to add that support.

mfalkvidd avatar Nov 13 '19 17:11 mfalkvidd