kylecorry31 / Trail-Sense

An Android app that uses your phone's sensors to assist with wilderness treks or survival situations.
https://kylecorry.com/Trail-Sense/
MIT License
1.15k stars 72 forks source link

Dynamic backtrack intervals #1719

Open soundray opened 1 year ago

soundray commented 1 year ago

I would like backtrack intervals to depend on recent movement.

Background: I currently have the backtrack interval permanently set to 30 minutes. This way I record a useful long-term location history while not draining the battery too much. However, when I'm cycling or hiking, I still use another app (OsmAnd+) for fine-grained tracking. If I forget to stop this tracking, I get excessive power consumption and huge log files.

I think it would be really cool if I could use Trail Sense for both purposes. I would like it if the tracking interval would stay long when I'm at home or at work (not moving, or moving slowly in inconsistent directions), but would shorten dramatically when I travel. A bonus would be if interval shortening would be triggered by movement as picked up by the acceleration sensors.

kylecorry31 commented 1 year ago

Thank you, this is a good idea.

Notes to self: Look into using the significant motion sensor + GPS speed to adjust interval when user starts moving. If not significant motion, than just GPS speed could work (it would have a delayed start though)

kadixfox commented 2 months ago

+1 for this; it's been fairly egregious to change backtrack interval anywhere between 8s to 1m depending on whether I'm driving, cycling, hiking, or skiing. This is a feature that almost all modern fitness/hiking tracking devices and applications utilize and I'd really like to see it available on Trail Sense.

I would prioritize the significant motion sensor for this to avoid hitting GPS, with GPS speed as a fallback. Unsure of the battery implications of using just GPS speed, perhaps add an option for user to specify sensitivity/latency of movement to begin ramping up/down the backtrack interval.

kylecorry31 commented 2 months ago

Thank you, I will bump the priority of this a little bit.

For reference, TS does not officially support cycling, skiing or driving related activities, so this is mainly for accounting for breaks during a hike. I don't think significant motion will help too much with cycling, so GPS speed will be more beneficial in your case.