zhyinch
2020-12-08 3840e6a73b2a542a35da034897b51747eabd571a
Src/main.c
@@ -29,7 +29,7 @@
#include "global_param.h"
#include "TrackingDiff.h"
#include "dw_app.h"
#define DEBUG_MODE
//#define DEBUG_MODE
/* USER CODE END Includes */
/* Private typedef -----------------------------------------------------------*/
@@ -210,7 +210,7 @@
u16 current_slotnum;
extern int32_t offsettimeus;
#define FIXSLOT
//#define FIXSLOT
#define FIXSLOTPOS  0
u16 slotpos_intoatl;
uint16_t bigslot_num;
@@ -252,14 +252,14 @@
   Usart1ParseDataCallback = UsartParseDataHandler;
   parameter_init();
   //deca_sleep(1000);
   g_com_map[VERSION] = 0x020b;
   g_com_map[VERSION] = 0x020c;
#ifdef DEBUG_MODE
//   g_com_map[DEV_ROLE]=1;
      g_com_map[DEV_ID]=0x11;
//   g_com_map[COM_INTERVAL]=100;
//   g_com_map[MAX_REPORT_ANC_NUM]=1;
//   g_com_map[NOMOVESLEEP_TIME]=10;
      //   g_com_map[IMU_ENABLE]=0;
         g_com_map[IMU_ENABLE]=0;
   //g_com_map[COM_INTERVAL]=50;
#endif
//g_com_map[NOMOVESLEEP_TIME]=10;