From: Caisking <3449750381@qq.com> Date: Sat, 18 Jan 2025 08:09:15 +0000 (+0800) Subject: 训练:增加训练配速相关日志 X-Git-Tag: v1.3.113-repair_tp~21^2~3 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=dc91e4792b743a7e9fa4fd9d75b5c1c6a3dcb230;p=mirrors%2FFD230.git 训练:增加训练配速相关日志 --- diff --git a/code/sdk/application/wearable/fd230app/nativeui/traing/src/TraingModel.cpp b/code/sdk/application/wearable/fd230app/nativeui/traing/src/TraingModel.cpp index 30a9efa56..88851ef74 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/traing/src/TraingModel.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/traing/src/TraingModel.cpp @@ -547,18 +547,23 @@ void TraingModel::AnalysisData(cywee_activity_result_t *cyweeInfo) { /*分析activity extra info数据*/ void TraingModel::AnalysisExtraData( cywee_activity_result_extre_info_t *cyweeInfo) { - WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "extra data %d %d %d %d", + + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[apc:%d fpc:%d cdc:%d std:%d]", cyweeInfo->avg_pace, cyweeInfo->max_pace, cyweeInfo->avg_step_freq, cyweeInfo->avg_step_len); + //平均配速 if (cyweeInfo->avg_pace != 0) { sportdata->apc = cyweeInfo->avg_pace; } + //最快配速 if (cyweeInfo->max_pace != 0) { - sportdata->fpc = cyweeInfo->max_pace; + sportdata->fpc =cyweeInfo->max_pace; } + //平均步频 if (cyweeInfo->avg_step_freq != 0) { sportdata->cdc = cyweeInfo->avg_step_freq; } + //平均步长 if (cyweeInfo->avg_step_len != 0) { sportdata->std = cyweeInfo->avg_step_len * 100; // 前者cm 后者m } @@ -1755,7 +1760,7 @@ void TraingModel::SendLiveDataIfNecessary() { } } -// 每10秒进行配速和心率数据存储 +// 每5秒进行配速和心率数据存储 void TraingModel::StoreDataIfMinutePassed() { if (sportdata->duration % 5 == 0) { uint32_t timestamp;