You are here: Forum Home → ANT Developers Forums → ANT in Mobile Phones → Thread
if ((heartBeatCounter - heartBeatCounter_pre) == 1){
usR_R_Interval = estTimestamp-estTimestamp_pre;
usR_R_Interval_ms = (long) ((usR_R_Interval * 1000) / 1024);
}
heartBeatCounter_pre= heartBeatCounter;
if ((heartBeatCounter - heartBeatCounter_pre) == 1){
rr_interval =HeartBeatEventTime.subtract(PreviousHeartBeatEventTime).doubleValue();
rr_interval_ms = (long) ((rr_interval * 1000.0) / 1024.0);
}
}
heartBeatCounter_pre= heartBeatCounter;
if ((heartBeatCounter - heartBeatCounter_pre) == 1){
rr_interval =HeartBeatEventTime.subtract(PreviousHeartBeatEventTime).doubleValue();
rr_interval_ms = (double) (rr_interval * 1000.0);
}
}
heartBeatCounter_pre= heartBeatCounter;
if ((heartBeatCounter - heartBeatCounter_pre) == 1){
rr_interval = HeartBeatEventTime.subtract(PreviousHeartBeatEventTime).multiply(new BigDecimal(1000)).doubleValue();
}
heartBeatCounter_pre= heartBeatCounter;
if ((heartBeatCounter - heartBeatCounter_pre) == 1 && IHeartRateDataTimestampReceiver.estTimestamp == IPage4AddtDataReceiver.estTimestamp){
rr_interval = HeartBeatEventTime.subtract(PreviousHeartBeatEventTime).multiply(new BigDecimal(1000)).doubleValue();
}
heartBeatCounter_pre= heartBeatCounter;
if ((heartBeatCounter - heartBeatCounter_pre) == 1)
{
if(IHeartRateDataTimestampReceiver.estTimestamp == IPage4AddtDataReceiver.estTimestamp)
{
//Use IPage4AddtDataReceiver.PreviousHeartBeatEventTime
}
else
{
//Use Cached HeartBeatEventTime
}
}
Dynastream Developer