QRcode.h
994 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#ifndef __QRCODE_H
#define __QRCODE_H
#include "bsp.h"
typedef struct
{
float setSpeed;
float encodeSpeed;
int voltage;
short enable;
float speedSlope;
int initStep;
}KincoStructInfo;
typedef struct
{
float palstance;
float angle;
float angleCompensation;
}IMUdata;
typedef struct
{
u8 initState;//速度模式初始化步骤
float setSpeed;//目标速度
float setPos;//设置目标位置
float encodePos;//反馈实际位置
u8 runState;//举升运动状态
int liftState;//-1原点 1最高点 0过程中
u16 errorState[4];//报警状态
}LifterStructInfo;
extern LifterStructInfo Lifter1;
typedef struct
{
u8 initState;
float setSpeed;
float encodeSpeed;
float encodeAngle;//旋转角度
int voltage;
short enable;
u8 runState;//旋转运动状态
int rotateState;
int turnAngle;
}RotateStructInfo;
extern RotateStructInfo Rotate1;
extern IMUdata IMU;
extern void getPosAngleOffset(float *PosOffset,float *Theta);
extern KincoStructInfo KincoStruct1,KincoStruct2;
extern void QRcodeNavigation();
#endif