macmove.h

来自「简单双马达玩具车驱动 包装~」· C头文件 代码 · 共 64 行

H
64
字号
/**********************************************************************
**
**          Copyright (c) 2008 -- Michael.All right received.
**
**          PROJECT: Tangtang's Graduation Design
**
**          PURPOSE: Head file for motor_drv_wrapper.c.
**
**          DATE : 05/18/2008
**
**          AUTHOR: Michael
**
**          SCHOOL: CUIT
**
**          FILENAME: macmove.h
**
**********************************************************************/

#ifndef MACMOVE_H
#define MACMOVE_H

#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */


/* Include files. */

#include "typedef.h"
#include "main.h"
#include "motor_drv_wrapper.h"

/* Macro constant definitions. */

#define WHEEL_DISTANCE (80) /* Distance between two wheel.(mm) */
#define PI ((double)3.1415926)
/* Type definitions. */


/* External function declarations. */

uint32 Angle2Distance(double angle);
eOsReturn MacMoveStop();
eOsReturn MacMoveForward();
eOsReturn MacMoveBackward();
eOsReturn MacMoveTurnLeft(double angle);
eOsReturn MacMoveTurnRight(double angle);


/* Macro API definitions. */


/* Global variable declarations. */



#ifdef __cplusplus
} /* extern "C" */
#endif /* __cplusplus */

#endif /* MACMOVE_H */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?