添加时钟 阶段性提交

This commit is contained in:
吕全辉
2020-06-09 11:30:15 +08:00
parent 1415f9cff2
commit e06181073e
12 changed files with 73 additions and 29 deletions
+8 -4
View File
@@ -17,7 +17,8 @@
#ifdef HAL_IMPL
/* TODO include files */
#include "AppProcessQEkff.h"
//#include "SEGGER_RTT.h"
//#include "SEGGER_RTT_Conf.h"
#endif
#include <stdint.h>
/* %%%-SFUNWIZ_wrapper_includes_Changes_END --- EDIT HERE TO _BEGIN */
@@ -98,7 +99,8 @@ void hal_6axis_imu_Outputs_wrapper(HAL_acc_SI_t *acc,
{
#ifdef HAL_IMPL
// TODO read 6axis-IMU
if(AppImuGetRawData(id[0], acc->x, acc->y, acc->z, gyro->x, gyro->y, gyro->z))
//SEGGER_RTT_printf(0, "AppImuGetRawData = %d \n",id[0]);
if(AppImuGetRawData(id[0], &acc->x, &acc->y, &acc->z, &gyro->x, &gyro->y, &gyro->z, &acc->seq, &gyro->seq))
{
ErrorCode[0] = 0;
}
@@ -113,7 +115,8 @@ void hal_6axis_imu_Outputs_wrapper(HAL_acc_SI_t *acc,
{
#ifdef HAL_IMPL
// TODO read 6axis-IMU
if(AppImuGetRawData(id[0], acc->x, acc->y, acc->z, gyro->x, gyro->y, gyro->z))
//SEGGER_RTT_printf(0, "AppImuGetRawData = %d \n",id[0]);
if(AppImuGetRawData(id[0], &acc->x, &acc->y, &acc->z, &gyro->x, &gyro->y, &gyro->z, &acc->seq, &gyro->seq))
{
ErrorCode[0] = 0;
}
@@ -128,7 +131,8 @@ void hal_6axis_imu_Outputs_wrapper(HAL_acc_SI_t *acc,
{
#ifdef HAL_IMPL
// TODO read 6axis-IMU
if(AppImuGetRawData(id[0], acc->x, acc->y, acc->z, gyro->x, gyro->y, gyro->z))
//SEGGER_RTT_printf(0, "AppImuGetRawData = %d \n",id[0]);
if(AppImuGetRawData(id[0], &acc->x, &acc->y, &acc->z, &gyro->x, &gyro->y, &gyro->z, &acc->seq, &gyro->seq))
{
ErrorCode[0] = 0;
}