23 lines
368 B
C
23 lines
368 B
C
#ifndef _MOTOR_CONTROL_H_
|
|
#define _MOTOR_CONTROL_H_
|
|
|
|
#include "struct_typedef.h"
|
|
#include "pid.h"
|
|
|
|
/*大疆电机解算数据*/
|
|
typedef struct
|
|
{
|
|
uint16_t ecd;
|
|
int16_t speed_rpm;
|
|
int16_t given_current;
|
|
uint16_t temperate;
|
|
int16_t last_ecd;
|
|
int16_t round_cnt;
|
|
int16_t total_angle;
|
|
uint16_t offset_ecd;
|
|
uint32_t msg_cnt;
|
|
} DJmotor_measure_t;
|
|
|
|
|
|
|
|
#endif |