|
PebbleOS
|
Distance and calorie estimates from steps and the user profile. More...
Functions | |
| uint32_t | activity_private_compute_distance_mm (uint32_t steps, uint32_t ms) |
| Estimate the distance covered by a number of steps. | |
| uint32_t | activity_private_compute_active_calories (uint32_t distance_mm, uint32_t ms) |
| Estimate the active calories burned covering a distance. | |
| uint32_t | activity_private_compute_resting_calories (uint32_t elapsed_minutes) |
| Estimate the resting calories burned over a period. | |
Distance and calorie estimates from steps and the user profile.
Use the height, weight, gender and age stored in the activity prefs.
| uint32_t activity_private_compute_active_calories | ( | uint32_t | distance_mm, |
| uint32_t | ms | ||
| ) |
Estimate the active calories burned covering a distance.
Rates above 120 m/min are considered running, which doubles the cost per meter.
| distance_mm | Distance, in millimeters. |
| ms | Time taken, in milliseconds. |
distance_mm or ms is 0. | uint32_t activity_private_compute_distance_mm | ( | uint32_t | steps, |
| uint32_t | ms | ||
| ) |
Estimate the distance covered by a number of steps.
The stride length depends on the user's height and on the cadence.
| steps | Steps taken. |
| ms | Time taken, in milliseconds. |
steps or ms is 0. | uint32_t activity_private_compute_resting_calories | ( | uint32_t | elapsed_minutes | ) |
Estimate the resting calories burned over a period.
Uses the Mifflin-St Jeor resting metabolic rate.
| elapsed_minutes | Period, in minutes. |