确定双板/单板兼容的整体框架

This commit is contained in:
NeoZeng
2022-11-27 18:54:27 +08:00
parent 32c63e4c18
commit 1abd0d7e4b
29 changed files with 658 additions and 12 deletions

View File

@@ -39,6 +39,7 @@
#include "dji_motor.h"
#include "motor_task.h"
#include "referee.h"
#include "ins_task.h"
/* USER CODE END Includes */
/* Private typedef -----------------------------------------------------------*/
@@ -138,13 +139,15 @@ int main(void){
/* We should never get here as control is now taken by the scheduler */
/* Infinite loop */
/* USER CODE BEGIN WHILE */
INS_Init();
while (1)
{
/* USER CODE END WHILE */
DJIMotorSetRef(djimotor, 10);
MotorControlTask();
HAL_Delay(100);
HAL_Delay(1);
INS_Task();
/* USER CODE BEGIN 3 */
}
/* USER CODE END 3 */