Skip to content

Conversation

@edance
Copy link
Owner

@edance edance commented Nov 24, 2024

Changes

Testing

  1. Install dependencies:
cd native/rust_fit
cargo build
  1. Launch IEx:
iex -S mix
  1. Test with a sample FIT file:
activity = Squeeze.RustFit.parse_fit_file("/path/to/marathon.fit")

# Verify new fields exist
activity.trackpoints |> Enum.take(1) |> IO.inspect()

# Check lap timestamps
activity.laps |> Enum.map(&(&1.start_date_local)) |> IO.inspect()

# Verify activity start time
IO.puts activity.start_at_local

TODO

  • Add running dynamics fields (ground contact time, vertical oscillation, etc)
  • Fix start_date_local for laps
  • Fix start_date_local for activity
  • Add comprehensive tests
  • Further code refactoring for maintainability

Next Steps

  1. Add timezone conversion logic
  2. Write unit tests for new fields
  3. Add documentation for new fields
  4. Consider adding more running metrics

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants