#include "task_ec800_upload.h" //-------------------------define #define ANGLE_UPDATE_TIME 50 // 角度更新时间 2s 单位100ms /** * @brief 上传任务内容 * @param None * @note None * @retval None */ void task_ec800_content(void) { // unsigned long times = 0; static uint8_t cnt = 0; // 4G模块的操作 // EC800_stateTransition_use(); // 每2s获取一次角度值 if((cnt % ANGLE_UPDATE_TIME) == 1){ printf("The app1 is runing.\r\n"); } if(cnt < 255){ cnt++; }else{ cnt = 0; } // 判断车辆是否正在转弯 // if (isTurning()) { // printf("The vehicle is turning.\r\n"); // } else { // printf("Vehicle not turning.\r\n"); // } // times = getRunTimeCounterValue(); // printf("任务运行时间: %ld\r\n", times); osDelay(100); }