zhyinch
2021-09-15 663265844417fd558fea8933238da47d2df1f7e2
Src/main.c
@@ -311,7 +311,7 @@
   hardware_pici= STMFLASH_ReadHalfWord(FLASH_HARDWARE_VERSION_MAP+2);
   hardware_type= STMFLASH_ReadHalfWord(FLASH_HARDWARE_VERSION_MAP+4);
   //deca_sleep(1000);
   g_com_map[VERSION] = 0x0223;
   g_com_map[VERSION] = 0x0224;
    
//   g_com_map[DEV_ID]=0x7;
#ifdef DEBUG_MODE
@@ -335,7 +335,7 @@
      g_com_map[NOMOVESLEEP_TIME]=10;
      g_com_map[MOTOR_ENABLE]=0;
   }
g_com_map[HEIGHTOFFEST_INDEX]=g_com_map[MAX_REPORT_ANC_NUM];
//g_com_map[HEIGHTOFFEST_INDEX]=g_com_map[MAX_REPORT_ANC_NUM];
   module_power = g_com_map[POWER];
   imu_enable=g_com_map[IMU_ENABLE];
   motor_enable=g_com_map[MOTOR_ENABLE];
@@ -399,7 +399,6 @@
         break;
      case 2:
         MX_TIM2_Init();
            BarInit();
         break;
      }
}
@@ -447,7 +446,7 @@
   LED_LG_ON;
   Program_Init();
   LIS3DH_Data_Init();   
 //   BarInit();
    BarInit();
   Dw1000_Init();
   Dw1000_App_Init();
   HardWareTypeDiffConfig();