中级会员
- 积分
- 300
- 威望
- 248
- 贡献
- 50
- 兑换币
- 0
- 注册时间
- 2010-3-15
- 在线时间
- 1 小时
|
- // Judgement.cpp : Defines the entry point for the DLL application.
- //
- #include "stdafx.h"
- #include "Judgement.H"
- unsigned short PWM;
- extern "C" _declspec(dllexport)
- void Judge( unsigned short Speed,
- unsigned char* SensorData, unsigned short SensorCount,
- unsigned char* CCDData, int CCDWidth, int CCDHeight,
- unsigned short* MotorPWM, unsigned short* SteerPWM)
- {
- PWM += 1;
- *MotorPWM = 65535*1;
- *SteerPWM = 65535*5;
- }
- extern "C" _declspec(dllexport)
- void Reset()
- {
- PWM = 6554;
- }
复制代码 |
|