Skip to content

[Issue]: Use the step counter to drop GPS drift #191

Description

@anis022

Branch Name

feature/191-pedometer-drift-filter

Description

This is a stretch goal, do not start until the other issues are done.

GPS drifts while someone stands still. Those fake metres get added to the patrol distance, which is a number we show on the summary screen. If the step counter says nobody walked between two fixes, the fix is drift and we drop it.

Scope

  • CMPedometer on iOS, the step counter sensor on Android
  • Compare the step count between two fixes. No steps means drop the fix
  • Put it in the native tracking service, next to the buffer
  • Fall back to the current distance filter on phones with no step sensor
  • Add NSMotionUsageDescription to Info.plist, or iOS refuses the pedometer

Acceptance Criteria

  • Standing still for 10 minutes adds close to zero distance
  • A normal walk records the same distance as it does today
  • A phone with no step sensor still records normally

Notes

Depends on the native point buffer, since it belongs in the same service. Needs a Mac for the iOS half.

Checklist

  • I have checked for duplicate issues.
  • I have assigned the issue to the correct project board.
  • I have tagged the issue properly.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

back-endback-end related issuefront-endfront-end related issue

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions