智能车制作
标题:
求Plastid2的控制策略文件
[打印本页]
作者:
LCL_data
时间:
2008-3-27 18:59
标题:
求Plastid2的控制策略文件
我对VC6用的不怎么熟悉 ,想看一下有没有这样的模板,有的话给我看一下吧 ,先谢谢了
作者:
qwi
时间:
2010-4-6 22:19
// 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;
}
复制代码
作者:
qwi
时间:
2010-4-6 22:19
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);
extern "C" _declspec(dllexport)
void Reset();
复制代码
作者:
qwi
时间:
2010-4-6 22:20
// stdafx.cpp : source file that includes just the standard includes
// Judgement.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information
#include "stdafx.h"
// TODO: reference any additional headers you need in STDAFX.H
// and not in this file
复制代码
作者:
qwi
时间:
2010-4-6 22:21
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//
#if !defined(AFX_STDAFX_H__1C2DB627_5869_40D5_A27E_5026FBE253DD__INCLUDED_)
#define AFX_STDAFX_H__1C2DB627_5869_40D5_A27E_5026FBE253DD__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Insert your headers here
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
#include <windows.h>
// TODO: reference additional headers your program requires here
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_STDAFX_H__1C2DB627_5869_40D5_A27E_5026FBE253DD__INCLUDED_)
复制代码
作者:
nandehutu586
时间:
2010-4-15 13:52
用51单片机可以仿真吗 生成dll文件要怎么弄
作者:
boshanliuyu
时间:
2013-5-8 23:38
:):)
欢迎光临 智能车制作 (http://dns.znczz.com/)
Powered by Discuz! X3.2