50 lines
1.0 KiB
C
50 lines
1.0 KiB
C
/**
|
|
******************************************************************************
|
|
* @file : Control_Task.c
|
|
* @brief : Control task
|
|
* @author : Yan Yuanbin
|
|
* @date : 2023/04/27
|
|
* @version : v1.0
|
|
******************************************************************************
|
|
* @attention : None
|
|
******************************************************************************
|
|
*/
|
|
/* USER CODE END Header */
|
|
|
|
/* Define to prevent recursive inclusion -------------------------------------*/
|
|
#ifndef CONTROL_TASK_H
|
|
#define CONTROL_TASK_H
|
|
|
|
/* Includes ------------------------------------------------------------------*/
|
|
#include "stdint.h"
|
|
#include "stdbool.h"
|
|
|
|
|
|
/**
|
|
* @brief typedef structure that contains the information of chassis control
|
|
*/
|
|
|
|
typedef struct
|
|
{
|
|
|
|
struct{
|
|
|
|
float Chassis_Velocity;
|
|
|
|
|
|
}Target;
|
|
|
|
struct{
|
|
|
|
float Chassis_Velocity;
|
|
|
|
|
|
}Measure;
|
|
|
|
int16_t SendValue[4];
|
|
|
|
}Control_Info_Typedef;
|
|
|
|
|
|
extern Control_Info_Typedef Control_Info;
|
|
#endif //CONTROL_TASK_H
|