rilling / OpenTracks-Winter-2024-COMP-354

OpenTracks is a sport tracking application that completely respects your privacy.
https://OpenTracksApp.com
Apache License 2.0
5 stars 26 forks source link

Computation of calories #17

Open raghad-jaafar opened 7 months ago

raghad-jaafar commented 7 months ago

Feature Request

Skiing enthusiasts using Opentracks cannot currently accurately track and compute the calories burned during their skiing activities. This lack of calorie tracking functionality diminishes the overall user experience and prevents users from effectively monitoring their fitness progress and goals while skiing.

Proposed Solution

Opentracks should implement a calorie burn calculation feature specifically tailored to skiing activities. This feature should accurately calculate the calories burned based on user characteristics such as age, weight, height, skiing intensity, and duration, as well as ski-specific parameters like elevation gain per run, speed, distance, slope percentage, and skiing conditions. Users should be able to view their calculated calorie burn alongside other ski-related statistics in the Opentracks app interface.

Alternatives

One alternative solution could be to integrate with third-party fitness tracking apps that specialize in calorie burn calculation for various activities, including skiing. However, this may lead to a disjointed user experience and dependency on external services. Therefore, building an in-house calorie burn calculation feature within Opentracks would provide a more integrated solution for users.

Additional context

Adding the ability to compute calories for skiing activities in Opentracks would significantly enhance the app's functionality and appeal to skiing enthusiasts. By accurately tracking and displaying calorie burn alongside other ski-related statistics, users can better monitor their fitness progress, set achievable goals, and make informed decisions about their skiing activities. This feature aligns with Opentracks' goal of providing comprehensive tracking and analysis tools for outdoor sports enthusiasts.

raghad-jaafar commented 6 months ago

Updated Feature Request

Current State: Skiing enthusiasts using Opentracks lack the ability to accurately track and compute the calories burned during their skiing activities. This limits the overall user experience and prevents users from effectively monitoring their progress while skiing.

Proposed Solution: Introduce a calorie burn calculation feature specifically tailored to skiing activities within Opentracks. This feature would utilize the CalorieCalculator class to accurately calculate the calories burned based on user characteristics such as weight, duration of skiing activity, and the metabolic equivalent of task (MET) value.

The CalorieCalculator class includes two methods for calorie calculation: The methods compute the calories burned during skiing based on the provided weight, duration of activity, and MET value, which represents the intensity of the skiing activity. One will offer the user the chance to input the three parameters and the other will provide a default MET value and just input the other parameter values.

Additional Context: Adding this feature would significantly enhance Opentracks' functionality for skiing enthusiasts. Accurate calorie tracking during skiing activities enables users to make informed decisions about their fitness routines and aligns with Opentracks' goal of providing comprehensive analysis tools for outdoor sports enthusiasts.

Next Steps: -integrating the CalorieCalculator class. -Test the feature thoroughly

erone26 commented 5 months ago

implemented a feature for dynamically calculating the calories burned during a ski run, taking into account the user's weight, the run's duration, average speed, slope percentage, and skiing conditions (issue #17)