⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 macmove.h

📁 简单双马达玩具车驱动 包装~
💻 H
字号:
/**********************************************************************
**
**          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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -