This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to calculate Speed and Cadence of ble_app_rscs samsple

Hi, I use nrf51422 and integrated BMA250E for Pedometer, Now I can count the step but I dont how to calculate the speed, cadence and stride length like below

static void rsc_sim_measurement(ble_rscs_meas_t * p_measurement) { p_measurement->is_inst_stride_len_present = true; p_measurement->is_total_distance_present = false; p_measurement->is_running = false;

p_measurement->inst_speed         =?
p_measurement->inst_cadence     = ?
p_measurement->inst_stride_length = ?	
if (p_measurement->inst_speed > (uint32_t)(MIN_RUNNING_SPEED * 256))
{
    p_measurement->is_running = true;
}

}

Can I ask the formula about that here. Thanks

Parents Reply Children
No Data
Related