This commit is contained in:
lmx
2025-11-25 18:52:49 +08:00
parent 4c5da2298f
commit 4af4f13ac6
2 changed files with 5 additions and 3 deletions

View File

@ -531,7 +531,7 @@ void skiing_tracker_update(skiing_tracker_t *tracker, float *acc_g, float *gyr_d
#if 1 #if 0
float linear_acc_device[3]; float linear_acc_device[3];
float linear_acc_world[3]; float linear_acc_world[3];
float tmp_world_acc[3]; float tmp_world_acc[3];
@ -547,11 +547,12 @@ void skiing_tracker_update(skiing_tracker_t *tracker, float *acc_g, float *gyr_d
tmp_world_acc[2] * tmp_world_acc[2]); tmp_world_acc[2] * tmp_world_acc[2]);
static int count = 0; static int count = 0;
if(count > 100){ if(count > 10){
xlog("===original(g): x %.2f, y %.2f, z %.2f===\n",acc_g[0],acc_g[1],acc_g[2]); xlog("===original(g): x %.2f, y %.2f, z %.2f===\n",acc_g[0],acc_g[1],acc_g[2]);
xlog("===world(m/s^2) no g: x %.2f, y %.2f, z %.2f, all %.2f===\n",tmp_world_acc[0],tmp_world_acc[1],tmp_world_acc[2],all_world_mag); //去掉重力加速度 xlog("===world(m/s^2) no g: x %.2f, y %.2f, z %.2f, all %.2f===\n",tmp_world_acc[0],tmp_world_acc[1],tmp_world_acc[2],all_world_mag); //去掉重力加速度
xlog("===gyr(dps) : x %.2f, y %.2f, z %.2f===\n",gyr_dps[0],gyr_dps[1],gyr_dps[2]); //angle xlog("===gyr(dps) : x %.2f, y %.2f, z %.2f===\n",gyr_dps[0],gyr_dps[1],gyr_dps[2]); //angle
xlog("===angle : x %.2f, y %.2f, z %.2f,===\n",angle[0],angle[1],angle[2]); xlog("===angle : x %.2f, y %.2f, z %.2f,===\n",angle[0],angle[1],angle[2]);
xlog("===speed(cm/s): %d\n",(int)(tracker->speed*100) );
count = 0; count = 0;
} }

View File

@ -36,7 +36,7 @@
#define xlog(format, ...) ((void)0) #define xlog(format, ...) ((void)0)
#endif #endif
#define SENSOR_DATA_BUFFER_SIZE 500 // 定义缓冲区可以存储XXX个sensor_data_t元素 #define SENSOR_DATA_BUFFER_SIZE 1000 // 定义缓冲区可以存储XXX个sensor_data_t元素
// //
/////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////
@ -164,6 +164,7 @@ void start_collect_fuc(void){
circle_buffer_write(&BLE_send_buff, &BLE_send_data_tmp); circle_buffer_write(&BLE_send_buff, &BLE_send_data_tmp);
} }
// xlog("=======sensor_read_data END\n");
} }