添加了前置知识

This commit is contained in:
NeoZng
2023-01-12 21:38:42 +08:00
parent 7b5512fb92
commit bcf7755a8a
3 changed files with 21 additions and 33 deletions

View File

@@ -38,6 +38,7 @@ Vision_Recv_s *VisionInit(UART_HandleTypeDef *_handle)
conf.module_callback = DecodeVision;
conf.recv_buff_size = VISION_RECV_SIZE;
conf.usart_handle = _handle;
vision_usart_instance = USARTRegister(&conf);
return &recv_data;
}

View File

@@ -229,6 +229,7 @@ void DJIMotorControl()
static Motor_Controller_s *motor_controller; // 电机控制器
static DJI_Motor_Measure_s *motor_measure; // 电机测量值
static float pid_measure, pid_ref; // 电机PID测量值和设定值
// 遍历所有电机实例,进行串级PID的计算并设置发送报文的值
for (size_t i = 0; i < idx; ++i)
{ // 减小访存开销,先保存指针引用