智能车制作

 找回密码
 注册

扫一扫,访问微社区

查看: 2861|回复: 6
打印 上一主题 下一主题

求Plastid2的控制策略文件

[复制链接]

0

主题

37

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
306
威望
254
贡献
44
兑换币
20
注册时间
2007-12-18
在线时间
4 小时
跳转到指定楼层
1#
发表于 2008-3-27 18:59:35 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
我对VC6用的不怎么熟悉 ,想看一下有没有这样的模板,有的话给我看一下吧 ,先谢谢了

1

主题

21

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
300
QQ
威望
248
贡献
50
兑换币
0
注册时间
2010-3-15
在线时间
1 小时
2#
发表于 2010-4-6 22:19:12 | 只看该作者
  1. // Judgement.cpp : Defines the entry point for the DLL application.
  2. //

  3. #include "stdafx.h"
  4. #include "Judgement.H"

  5. unsigned short PWM;

  6. extern "C" _declspec(dllexport)
  7. void Judge( unsigned short Speed,
  8.                         unsigned char* SensorData, unsigned short SensorCount,
  9.                         unsigned char* CCDData, int CCDWidth, int CCDHeight,
  10.                         unsigned short* MotorPWM, unsigned short* SteerPWM)
  11. {

  12.         PWM += 1;
  13.         *MotorPWM = 65535*1;
  14.         *SteerPWM = 65535*5;

  15. }

  16. extern "C" _declspec(dllexport)
  17. void Reset()
  18. {
  19.         PWM = 6554;
  20. }
复制代码
回复 支持 反对

使用道具 举报

1

主题

21

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
300
QQ
威望
248
贡献
50
兑换币
0
注册时间
2010-3-15
在线时间
1 小时
3#
发表于 2010-4-6 22:19:59 | 只看该作者
  1. extern "C" _declspec(dllexport)
  2. void Judge( unsigned short Speed,
  3.                         unsigned char* SensorData, unsigned short SensorCount,
  4.                         unsigned char* CCDData, int CCDWidth, int CCDHeight,
  5.                         unsigned short* MotorPWM, unsigned short* SteerPWM);
  6.                        
  7. extern "C" _declspec(dllexport)
  8. void Reset();
复制代码
回复 支持 反对

使用道具 举报

1

主题

21

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
300
QQ
威望
248
贡献
50
兑换币
0
注册时间
2010-3-15
在线时间
1 小时
4#
发表于 2010-4-6 22:20:37 | 只看该作者
  1. // stdafx.cpp : source file that includes just the standard includes
  2. //        Judgement.pch will be the pre-compiled header
  3. //        stdafx.obj will contain the pre-compiled type information

  4. #include "stdafx.h"

  5. // TODO: reference any additional headers you need in STDAFX.H
  6. // and not in this file
复制代码
回复 支持 反对

使用道具 举报

1

主题

21

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
300
QQ
威望
248
贡献
50
兑换币
0
注册时间
2010-3-15
在线时间
1 小时
5#
发表于 2010-4-6 22:21:14 | 只看该作者
  1. // stdafx.h : include file for standard system include files,
  2. //  or project specific include files that are used frequently, but
  3. //      are changed infrequently
  4. //

  5. #if !defined(AFX_STDAFX_H__1C2DB627_5869_40D5_A27E_5026FBE253DD__INCLUDED_)
  6. #define AFX_STDAFX_H__1C2DB627_5869_40D5_A27E_5026FBE253DD__INCLUDED_

  7. #if _MSC_VER > 1000
  8. #pragma once
  9. #endif // _MSC_VER > 1000


  10. // Insert your headers here
  11. #define WIN32_LEAN_AND_MEAN                // Exclude rarely-used stuff from Windows headers

  12. #include <windows.h>

  13. // TODO: reference additional headers your program requires here

  14. //{{AFX_INSERT_LOCATION}}
  15. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.

  16. #endif // !defined(AFX_STDAFX_H__1C2DB627_5869_40D5_A27E_5026FBE253DD__INCLUDED_)
复制代码
回复 支持 反对

使用道具 举报

1

主题

68

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
399
威望
296
贡献
91
兑换币
0
注册时间
2009-8-8
在线时间
6 小时
6#
发表于 2010-4-15 13:52:52 | 只看该作者
用51单片机可以仿真吗 生成dll文件要怎么弄
回复 支持 反对

使用道具 举报

1

主题

72

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
411
QQ
威望
325
贡献
72
兑换币
27
注册时间
2011-4-9
在线时间
7 小时
7#
发表于 2013-5-8 23:38:40 | 只看该作者
:):)
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

关于我们|联系我们|小黑屋|智能车制作 ( 黑ICP备2022002344号

GMT+8, 2024-9-22 19:22 , Processed in 0.046316 second(s), 29 queries , Gzip On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表