PebbleOS
Loading...
Searching...
No Matches
Macros
activity_algorithm_kraepelin.h File Reference
#include <pbl/util/units.h>

Macros

#define ALG_RAW_LIGHT_SENSOR_DIVIDE_BY   16
 Divisor applied to the raw light sensor reading stored in minute records.
 
#define ALG_PRIMARY_EVENING_MINUTE   (21 * PBL_MIN_PER_HOUR)
 Sleep sessions ending after this minute of the day (9pm) are primary sleep, not naps.
 
#define ALG_PRIMARY_MORNING_MINUTE   (12 * PBL_MIN_PER_HOUR)
 Sleep sessions starting before this minute of the day (12pm) are primary sleep, not naps.
 
#define ALG_MAX_NAP_MINUTES   (3 * PBL_MIN_PER_HOUR)
 Maximum length of a nap, in minutes.
 
#define ALG_SLEEP_HISTORY_HOURS_FOR_TODAY   36
 Hours of past minute data processed to compute today's sleep.