zhyinch
2021-11-16 e3dfcf2b4eafdb5bace59d796a270f8e8d532763
源码/核心板/Src/main.c
@@ -14,7 +14,6 @@
#include "deca_device_api.h"
#include "Flash.h"
//#define DEBUG_MODE
void Device_Init(void)
{
   RCC_Configuration();
@@ -53,6 +52,7 @@
extern u8 module_power;
u16 slottime,max_slotnum,current_slotpos,dist_threshold;
u16 supergroupid;
void Program_Init(void)
{uint16_t i;
   float temp;
@@ -92,7 +92,9 @@
      {
         module_power=67;
      }
      g_com_map[VERSION] = 0x0124;
        supergroupid = g_com_map[IMU_THRES];
      g_com_map[VERSION] = 0x012e;
        g_com_map[SW_TYPE] =    SW_MODBUS;
   temp=(float)g_com_map[MAX_REPORT_ANC_NUM]*4/3;   
   temp2=g_com_map[MAX_REPORT_ANC_NUM]*4/3;
   if(temp2<temp)
@@ -203,6 +205,11 @@
   Modbus_RegMap();
   while(1)
   {
    if(g_com_map[0] != 0x55AA)
   {
        while(1)
        IdleTask();
    }
   if(g_start_send_flag)
   {
      g_start_send_flag = 0;