| | |
| | | #include "dw_mbx_tag.h" |
| | | |
| | | #include "dps310.h" |
| | | #define DELAY_BETWEEN_TWO_FRAME_UUS 400 |
| | | #define POLL_RX_TO_RESP_TX_DLY_UUS 470 |
| | | #define UUS_TO_DWT_TIME 65536 |
| | |
| | | Radio.Send(lora_sendbuffer,16); |
| | | } |
| | | uint16_t heatbeat_count = 3600; |
| | | int16_t intheight; |
| | | #define HEATBEAT_UPDATE_TIME 3600 |
| | | extern float Height; |
| | | void LoraReportPoll(void) |
| | | { |
| | | |
| | |
| | | checksum = Checksum_u16(lora_sendbuffer,4*report_ancnum+ANCID_IDX); |
| | | memcpy(&lora_sendbuffer[ANCID_IDX+report_ancnum*4],&checksum,2); |
| | | Radio.Send(lora_sendbuffer,ANCID_IDX+report_ancnum*4+2); |
| | | GetPressAndHeight(); |
| | | intheight = Height*100; |
| | | LED_TB_ON; |
| | | // bat_percent=Get_Battary(); |
| | | printf("气压值:%d",intheight); |
| | | bat_percent=Get_Battary(); |
| | | |
| | | } |