Dear Member,
I want to calculate distance I have traveled,
I saw variables as
#define WHEEL_CIRCUMFERENCE 2070 /**< Bike wheel circumference [mm] */
static uint32_t calculate_speed(int32_t rev_cnt, int32_t evt_time)
distance = rev_cnt * (WHEEL_CIRCUMFERENCE/1000); //divide by 1000 for per metre
but the output doesn't make sense
nfo> app: Computed distance value: 52052 m
any clues ? Do I need to add any coefficient ? which coefficient ?
is this variable BSC_PROFILE_speed_rev_count equal to wheel rotation speed ?
thanks