登录
首页 » c++ » 无刷直流电机

无刷直流电机

于 2022-03-25 发布 文件大小:114.06 kB
0 96
下载积分: 2 下载次数: 2

代码说明:

无刷直流电机用IR2101芯片仿真的仿真图,可以控制电机转动,固定的pwm,

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • eg8010底板电路图
    【实例简介】EG8010 DCAC 底板
    2021-06-25 00:31:07下载
    积分:1
  • 在delphi中使用xml文档的方法,包括读写xml文档,创建删除xml文档...
    在delphi中使用xml文档的方法,包括读写xml文档,创建删除xml文档-the use xml documents, including literacy xml files, create xml files deleted
    2022-08-20 05:39:44下载
    积分:1
  • arm9-linux2.6.30.4HC-RS04
    arm9 linux2.6.30.4环境下,HC-RS04超声波模块驱动&&测试程序(Under arm9 linux2.6.30.4 environment, HC-RS04 ultrasonic module driver && test procedures)
    2021-04-10 20:28:59下载
    积分:1
  • C# 报表组件设计方法
    本例说明一种报表组件的实现方法。原理:将各个表格元素,以图像的方式设置、添加到纸张画布上,生成图像,打印图像。功能:1、支持SQL Serrver、Access数据库,如需其他数据库,也可很方便的添加到代码中,自动获取数据表,在元素中可选择添加字段到报表中;2、报表元素可自由拖放、设置大小、内容、字体、字体样式等(元素非PictureBox组件);3、支持全程的“撤销”、“重做”;4、可保存、读取报表文件;5、预览、打印没加上去,原理就是根据元素生成一幅或多幅图像,再输出到打印机,自行修改添加。这里说明一下,这只是个规划草稿,只是描述了一种报表组件的设计方式,所以代码写的较为繁琐、冗余,代码无委托线程等,所以比较容易看明白。 /// /// 剪切复制粘贴组件操作 /// public class OperationObject { public bool isData { get; set; } // 是否有剪切复制粘贴数据 public Rectangle Region { get; set; } // 大小范围 public bool IsDragging { get; set; } // 能否拖动 public Point DraggingPoint { get; set; } // 组件拖动位置 public Bitmap Setimage { get; set; } // 组件图像 public int SetType { get; set; } // 组件类型 public bool isContent { get; set; } // 组件内是否有内容 public int Field_BandType { get; set; } // 栏目类型 public Bitmap Field_Img { get; set; } // 图像组件的图像 public string Field_Text { get; set; } // 文字 public string Field_TextFont { get; set; } // 字体 public int Field_TextFontSize { get; set; } // 字体大小 public FontStyle Field_TextFontStyle { get; set; } // 文字样式 public string Field_Align { get; set; } // 对齐方式 public int Field_ImgZoom { get; set; } // 图像缩放 public bool[] Field_BoxLine { get; set; } // 边框和斜线 public int Field_Shape { get; set; } // 形状的类型 } public static OperationObject operationObject; /// /// 组件操作记录 /// public class RecordObject { public int Num; // 序号 public Rectangle Region; // 大小范围 public bool IsDragging; // 能否拖动 public Point DraggingPoint; // 组件拖动位置 public Bitmap Setimage; // 组件图像 public int SetType; // 组件类型 public bool isContent; // 组件内是否有内容 public int Field_BandType; // 栏目类型 public Bitmap Field_Img; // 图像组件的图像 public string Field_Text; // 文字 public string Field_TextFont; // 字体 public int Field_TextFontSize; // 字体大小 public FontStyle Field_TextFontStyle; // 文字样式 public string Field_Align; // 对齐方式 public int Field_ImgZoom; // 图像缩放 public bool[] Field_BoxLine; // 边框和斜线 public int Field_Shape; // 形状的类型 public RecordObject( int _Num,Rectangle _Region, bool _IsDragging, Point _DraggingPoint, Bitmap _Setimage, int _SetType, bool _isContent, int f_BandType, Bitmap f_Img, string f_Text, string f_TextFont, int f_TextFontSize, FontStyle f_TextFontStyle, string f_Align, int f_ImgZoom, bool[] f_BoxLine, int f_Shape) { Num = _Num; Region = _Region; IsDragging = _IsDragging; DraggingPoint = _DraggingPoint; Setimage = _Setimage; SetType = _SetType; isContent = _isContent; Field_BandType = f_BandType; Field_Img = f_Img; Field_Text = f_Text; Field_TextFont = f_TextFont; Field_TextFontSize = f_TextFontSize; Field_TextFontStyle = f_TextFontStyle; Field_Align = f_Align; Field_ImgZoom = f_ImgZoom; Field_BoxLine = f_BoxLine; Field_Shape = f_Shape; } } public static List recordObject; /// /// 组件移动 /// public abstract class ADraggableGDIObject { public abstract Rectangle Region { get; set; } // 大小范围 public abstract bool IsDragging { get; set; } // 能否拖动 public abstract Point DraggingPoint { get; set; } // 组件拖动位置 public abstract Bitmap Setimage { get; set; } // 组件图像 public abstract int SetType { get; set; } // 组件类型 public abstract void OnPaint(PaintEventArgs e); // 重绘 public abstract bool isContent { get; set; } // 组件内是否有内容 public abstract int Field_BandType { get; set; } // 栏目类型 public abstract Bitmap Field_Img { get; set; } // 图像组件的图像 public abstract string Field_Text { get; set; } // 文字 public abstract string Field_TextFont { get; set; } // 字体 public abstract int Field_TextFontSize { get; set; } // 字体大小 public abstract FontStyle Field_TextFontStyle { get; set; } // 文字样式 public abstract string Field_Align { get; set; } // 对齐方式 public abstract int Field_ImgZoom { get; set; } // 图像缩放 public abstract bool[] Field_BoxLine { get; set; } // 边框和斜线 public abstract int Field_Shape { get; set; } // 形状的类型 } /// /// 组件移动对象定义 /// public class Draggable : ADraggableGDIObject { private bool m_IsDragging; // 能否拖动 private Point m_DraggingPoint; // 组件拖动位置 private Rectangle m_Region; // 大小范围 private Bitmap m_image; // 组件图像 private int m_controlType; // 组件类型 private bool m_isContent; // 组件内是否有内容 private int f_BandType; // 栏目类型 private Bitmap f_Img; // 图像组件的图像 private string f_Text; // 文字 private string f_TextFont; // 字体 private int f_TextFontSize; // 字体大小 private FontStyle f_TextFontStyle; // 文字样式 private string f_Align; // 对齐方式 private int f_ImgZoom; // 图像缩放 private bool[] f_BoxLine = new bool[8] { false, false, false, false, false, false, false, false }; // 边框和斜线 private int f_Shape; // 形状的类型 public Draggable(int startx, int starty, int _settype) { m_Region = new Rectangle(startx, starty, 51, 51); m_controlType = _settype; m_isContent = false; } public override int SetType { get { return m_controlType; } set { m_controlType = value; } } public override Rectangle Region { get { return m_Region; } set { m_Region = value; } } public override Bitmap Setimage { get { return m_image; } set { m_image = value; } } public override void OnPaint(PaintEventArgs e) { e.Graphics.DrawImage(m_image, m_Region); } public override bool IsDragging { get { return m_IsDragging; } set { m_IsDragging = value; } } public override Point DraggingPoint { get { return m_DraggingPoint; } set { m_DraggingPoint = value; } } public override bool isContent { get { return m_isContent; } set { m_isContent = value; } } public override int Field_BandType { get { return f_BandType; } set { f_BandType = value; } } public override Bitmap Field_Img { get { return f_Img; } set { f_Img = value; } } public override string Field_Text { get { return f_Text; } set { f_Text = value; } } public override string Field_TextFont { get { return f_TextFont; } set { f_TextFont = value; } } public override int Field_TextFontSize { get { return f_TextFontSize; } set { f_TextFontSize = value; } } public override FontStyle Field_TextFontStyle { get { return f_TextFontStyle; } set { f_TextFontStyle = value; } } public override string Field_Align { get { return f_Align; } set { f_Align = value; } } public override int Field_ImgZoom { get { return f_ImgZoom; } set { f_ImgZoom = value; } } public override bool[] Field_BoxLine { get { return f_BoxLine; } set { f_BoxLine = value; } } public override int Field_Shape { get { return f_Shape; } set { f_Shape = value; } } } public static List m_DraggableGDIObjects; /// /// 序列化保存读取组件 /// [Serializable] public class SerializerObject { public string Data_Type; // 数据库类型 public string Data_DataName; //数据库名 public string Data_Table; // 数据表 public string Data_UserName; //用户名 public string Data_Password; // 密码 public string Data_ConnectionIP; // 地址 public string Page_TypeFace; public int Page_Direction; public int[] Page_Margin; public int controlNum; public Rectangle Region; // 大小范围 public bool IsDragging; // 能否拖动 public Point DraggingPoint; // 组件拖动位置 public Bitmap Setimage; // 组件图像 public int SetType; // 组件类型 public bool isContent; // 组件内是否有内容 public int Field_BandType; // 栏目类型 public Bitmap Field_Img; // 图像组件的图像 public string Field_Text; // 文字 public string Field_TextFont; // 字体 public int Field_TextFontSize; // 字体大小 public FontStyle Field_TextFontStyle; // 文字样式 public string Field_Align; // 对齐方式 public int Field_ImgZoom; // 图像缩放 public bool[] Field_BoxLine; // 边框和斜线 public int Field_Shape; // 形状的类型 public bool[] Band_Flag; // 栏目只出现一次 public SerializerObject( string _DataType, string _DataName,string _DataTable, string _DataUserName, string _DataPassword, string _DataConnectionIP, string _TypeFace, int _Direction, int[] _Margin, int _Num, Rectangle _Region, bool _IsDragging, Point _DraggingPoint, Bitmap _Setimage, int _SetType, bool _isContent, int f_BandType, Bitmap f_Img, string f_Text, string f_TextFont, int f_TextFontSize, FontStyle f_TextFontStyle, string f_Align, int f_ImgZoom, bool[] f_BoxLine, int f_Shape, bool[] _BandFlag) { Data_Type = _DataType; Data_DataName = _DataName; Data_Table = _DataTable; Data_UserName = _DataUserName; Data_Password = _DataPassword; Data_ConnectionIP = _DataConnectionIP; Page_TypeFace = _TypeFace; Page_Direction = _Direction; Page_Margin = _Margin; controlNum = _Num; Region = _Region; IsDragging = _IsDragging; DraggingPoint = _DraggingPoint; Setimage = _Setimage; SetType = _SetType; isContent = _isContent; Field_BandType = f_BandType; Field_Img = f_Img; Field_Text = f_Text; Field_TextFont = f_TextFont; Field_TextFontSize = f_TextFontSize; Field_TextFontStyle = f_TextFontStyle; Field_Align = f_Align; Field_ImgZoom = f_ImgZoom; Field_BoxLine = f_BoxLine; Field_Shape = f_Shape; Band_Flag = _BandFlag; } } public static List serializerObject = new List(); ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// public static bool Change_Flag = false; // 是否改变了组件 /*窗体定义*/ public static Point screen_Location; // 窗体位置 public static Size screen_Size; //窗体大小 public static bool setFont_Flag = false; // 选择字体窗口打开标志 public static bool setFontSize_Flag = false; // 选择字体大小窗口打开标志 public static bool setDate_Flag = false; // 选择日期窗口打开标志 public static bool setPageCode_Flag = false; // 选择页码窗口打开标志 /*数据库*/ public static string Data_Type = ""; // 数据库类型 public static string Data_DataName = ""; // 数据库名 public static string Data_Table = ""; // 数据表 public static string Data_UserName = ""; //用户名 public static string Data_Password = ""; // 密码 public static string Data_ConnectionIP = ""; // 地址 /*组件区域位置*/ public static PointF[] CursorArea = new PointF[8]; // 鼠标区域 public static Font LabelFont = new Font("微软雅黑", 9, FontStyle.Regular); // label 字体设置 public static bool ShowLine = true; // 是否显示组件标线 /*设计页面*/ public static string Page_TypeFace = "A4"; // 纸张类型 public static int Page_Direction = 0; // 纸张方向 public static Size[] Page_Area = new Size[2] { new Size(789,1136), new Size(1136,789) }; // 横向、纵向纸张大小 public static int[] Page_Margin = new int[4] { 0,0,0,0 }; // 纸张边距 public static PanelEx pageDesing; // 设计框 public static PanelEx pageContainer; // 页面容器 public static PanelEx A4_PageType; // 页面 public static bool controlPlace = false; // 能否放置组件 public static int controlType = -1; // 组件类型 public static int control_Num = -1; // 组件序号 public static int oper_Record = -1; // 操作动作序号 /*底部状态信息栏*/ public static PanelEx statePanel; public static PanelEx[] control_Input = new PanelEx[8]; /*选择形状、栏目标志*/ public static int Select_Shape = 0; public static int Select_Band = 0; public static bool[] Band_Flag = new bool[3] { false,false,false}; // 栏目只出现一次
    2018-09-13下载
    积分:1
  • ooptest
    C++实现的FFT,详细,简单,内含多个测试类(using C++ implements fft,including serials class)
    2013-12-12 23:22:05下载
    积分:1
  • c++ 三次样条曲线拟合 示例源码下载
    c++ 三次样条曲线拟合 示例源码下载
    2017-11-01下载
    积分:1
  • 本文件包是针对学习DotNetBar初学者,有精美的案例,有实用经典的按键使用,忘各位多多支持...
    本文件包是针对学习DotNetBar初学者,有精美的案例,有实用经典的按键使用,忘各位多多支持-this textbox is very userful!
    2022-04-27 17:36:08下载
    积分:1
  • MFC中实现打开文件的代码
    用MFC实现计算器的设计。建立消息响应机制,添加按钮,在按钮上点击建立类向导,添加建立类的名称。弹出该类的一个界面,直接在类名下添加响应机制的代码。将编辑框中的内容定义为一个变量,将编辑框中的内容传给变量。在源代码中处理各变量的关系即可
    2022-05-23 17:40:26下载
    积分:1
  • 张正友相机标定matlab代码
    张正友相机标定matlab代码含图片和张正友文档
    2022-05-26 08:59:12下载
    积分:1
  • bp-matlab
    一个matlab实现bp的源文件,也许各位用得上,请大家多多指教(Bp realize a matlab source files, perhaps you useful, please everyone exhibitions)
    2008-02-28 15:22:11下载
    积分:1
  • 696518资源总数
  • 105559会员总数
  • 1今日下载