| | |
| | | |
| | | } |
| | | HIDO_TimerTick(); |
| | | nomove_count++; |
| | | |
| | | } |
| | | uint8_t stationary_flag; |
| | | uint8_t flag_sleeptimer,flag_secondtask,secondtask_count; |
| | | uint8_t lora_wg_up=0; |
| | | extern uint8_t lora_tx_flag; |
| | |
| | | } |
| | | |
| | | //GPS工作逻辑 |
| | | |
| | | if(nomove_count++>g_com_map[STATIONARY_TIME]) |
| | | { |
| | | stationary_flag = 1; |
| | | } else |
| | | { |
| | | stationary_flag = 0; |
| | | } |
| | | nomove_count++; |
| | | } |
| | | |
| | | void phy_timer_callback(uint32_t time) |
| | |
| | | Usart1ParseDataCallback = UsartParseDataHandler;//需改为默认为gps处理,UsartParseDataHandler为升级处理当调试时候改为 |
| | | parameter_init_anchor();//g_com_map表初始化角色默认为基站 |
| | | g_com_map[DEV_ID]=0x1234; |
| | | g_com_map[STATIONARY_TIME] = 10; |
| | | // g_com_map[GROUP_ID]=1; |
| | | dev_id=g_com_map[DEV_ID];//这里不太对 |
| | | group_id=g_com_map[GROUP_ID];//组ID |