zhyinch
2020-03-29 5f2e06850028e286bd95cfd003dd0682af267be3
源码/核心板/Src/main.c
@@ -10,7 +10,7 @@
#include "serial_at_cmd_app.h"
#include "global_param.h"
#include "ADC.h"
#include "modbus.h"
//#define DEBUG_MODE
void Device_Init(void)
@@ -46,6 +46,7 @@
}
u16 tyncpoll_time;
TrackingDiffClass *pUWBDistanceTrackingDiff;
u8 group_id;
void Program_Init(void)
{uint16_t i;
   float temp;
@@ -69,7 +70,8 @@
#endif
      //pUWBDistanceTrackingDiff = NewTrackingDiffClass(2, 4, 0.03);
      dev_id = g_com_map[DEV_ID];
      g_com_map[VERSION] = 0x0110;
      group_id=g_com_map[GROUP_ID];
      g_com_map[VERSION] = 0x0113;
   temp=(float)g_com_map[MAX_REPORT_ANC_NUM]*4/3;   
   temp2=g_com_map[DEV_ID]*g_com_map[MAX_REPORT_ANC_NUM]*4/3;
   if(temp2<temp)