| 12345678910111213141516171819202122232425262728293031323334 |
- #ifndef __MAIN_TASK_H
- #define __MAIN_TASK_H
- #include "stdbool.h"
- #include "stm32f4xx_hal.h"
- #define RAD ((float)57.3)
- #define DEG_TO_RAD 0.017453292519943295769236907684886f // 度换算弧度
- #define RAD_TO_DEG 57.295779513082320876798154814105f // 弧度换算度
- enum vklink_PMU_SEND
- {
- PMU_SEND_YAOCE = 1, // 遥测信息
- PMU_SEND_REQINFO = 2, // 请求信息
- PMU_SEND_ACK = 3, // 主控应答信息
- PMU_SEND_VERSION = 4, // 版本信息
- PMU_SEND_SHA1 = 5, // 版本信息
- PMU_SEND_DEV_INFO = 6, // 设备信息
- };
- extern bool terrain_is_link;
- extern bool obs_f_is_link;
- extern bool obs_b_is_link;
- extern uint8_t pmu_send;
- extern char ack_id;
- extern short ack_content;
- extern short ack_content1;
- extern short ack_content2;
- extern uint8_t test_temp;
- void thread_main_task_handle(void *param);
- void pmu_set_ack(uint8_t id,short content1, short content2,short content3);
- void Update_ack_func(uint8_t group_id, uint8_t msg_id, uint8_t *ackbuf);
- #endif
|