没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
/******************** (C) COPYRIGHT 2007 STMicroelectronics ********************
* File Name : MC_State_Observer.c
* Author : IMS Systems Lab
* Date First Issued : 21/11/07
* Description : This module implements the State Observer of
* the PMSM B-EMF, thus identifying rotor speed and position
*
********************************************************************************
* History:
* 21/11/07 v1.0
********************************************************************************
* THE PRESENT SOFTWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME.
* AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT,
* INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE
* CONTENT OF SUCH SOFTWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING
* INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
*******************************************************************************/
/* Includes ------------------------------------------------------------------*/
#include "stm32f10x_type.h"
#include "MC_type.h"
#include "MC_State_Observer.h"
/* Private define ------------------------------------------------------------*/
#define BUFFER_SIZE (u8)64
/* Private variables ---------------------------------------------------------*/
static s32 wIalfa_est,wIbeta_est;
* File Name : MC_State_Observer.c
* Author : IMS Systems Lab
* Date First Issued : 21/11/07
* Description : This module implements the State Observer of
* the PMSM B-EMF, thus identifying rotor speed and position
*
********************************************************************************
* History:
* 21/11/07 v1.0
********************************************************************************
* THE PRESENT SOFTWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME.
* AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT,
* INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE
* CONTENT OF SUCH SOFTWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING
* INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
*******************************************************************************/
/* Includes ------------------------------------------------------------------*/
#include "stm32f10x_type.h"
#include "MC_type.h"
#include "MC_State_Observer.h"
/* Private define ------------------------------------------------------------*/
#define BUFFER_SIZE (u8)64
/* Private variables ---------------------------------------------------------*/
static s32 wIalfa_est,wIbeta_est;
static s32 wBemf_alfa_est, wBemf_beta_est;
static s32 wSpeed_PI_integral_sum;
static s16 hBemf_alfa_est,hBemf_beta_est;
static s16 hSpeed_Buffer[BUFFER_SIZE];
static s16 hRotor_El_Angle;
static s16 hRotor_Speed_dpp;
static bool Max_Speed_Out, Min_Speed_Out, Is_Speed_Reliable;
static u8 bSpeed_Buffer_Index;
extern const s16 hSin_Cos_Table[256];
static volatile s16 hC2, hC4;
static s16 hF1, hF2, hF3, hC1, hC3,hC5, hC6;
static volatile s16 hSpeed_P_Gain, hSpeed_I_Gain;
static s32 wMotorMaxSpeed_dpp;
static u16 hPercentageFactor;
/* Private function prototypes -----------------------------------------------*/
s16 Calc_Rotor_Speed(s16, s16);
s16 Speed_PI(s16, s16);
void Store_Rotor_Speed(s16);
//function of MC_Clarke_Park.c
Trig_Components Trig_Functions(s16);
/*******************************************************************************
static s32 wSpeed_PI_integral_sum;
static s16 hBemf_alfa_est,hBemf_beta_est;
static s16 hSpeed_Buffer[BUFFER_SIZE];
static s16 hRotor_El_Angle;
static s16 hRotor_Speed_dpp;
static bool Max_Speed_Out, Min_Speed_Out, Is_Speed_Reliable;
static u8 bSpeed_Buffer_Index;
extern const s16 hSin_Cos_Table[256];
static volatile s16 hC2, hC4;
static s16 hF1, hF2, hF3, hC1, hC3,hC5, hC6;
static volatile s16 hSpeed_P_Gain, hSpeed_I_Gain;
static s32 wMotorMaxSpeed_dpp;
static u16 hPercentageFactor;
/* Private function prototypes -----------------------------------------------*/
s16 Calc_Rotor_Speed(s16, s16);
s16 Speed_PI(s16, s16);
void Store_Rotor_Speed(s16);
//function of MC_Clarke_Park.c
Trig_Components Trig_Functions(s16);
/*******************************************************************************
剩余16页未读,继续阅读
资源评论
- xiaoxiao200809182019-09-06现在来看,并不是多好了,效果也一般
- mk2052019-05-07STM32 电机库2.0 版本内容,且属于源码哦,重要的事多说一次,源码哦!多谢了
- love1058272019-03-20这个应该是电机库2.0版本的内容
- elforatic2021-11-01整个文档里边的注释不超过15个字,详细介绍在哪里???
jjjjggggg
- 粉丝: 3
- 资源: 9
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 灰色关联分析与预测-MATLAB实现
- 三相PWM整流器,采用双闭环控制,用C语言实现PI控制,SVPWM等模块
- 电力系统潮流计算前推回代法MATLAB程序IEEE33节点系统 (1)该程序为电力系统潮流计算程序,硕士学位lunwen原程序,配有该lunwen (2)潮流求解方法为前推回代法,IEEE33节
- halcon 对线段上点的按线段方向顺序依一定距离依次取样排列
- 基于maxwell的6极36槽永磁同步电机(永磁直流无刷)模型,水冷,24.5kw, 绕组类型:分布式绕组,直流电压270Vdc,对6极 额定转速9000rpm,扭矩额定扭矩:输出扭矩不低于26Nm
- 毕设-c语言图书借阅系统源码3.zip
- 毕设-c语言通讯录管理系统源码1.zip
- 毕设-c语言学生成绩管理系统源码9.zip
- 毕设-c语言图书管理系统源码2.zip
- 毕设-c语言涂格子游戏源码4.zip
- 毕设-c语言五子棋源码7.zip
- 毕设-c语言万年历源码5.zip
- 毕设-c语言学生成绩管理系统8.zip
- 毕设-c语言学生信息系统10.zip
- 毕设-c语言文本编辑器系统源码6.zip
- 搭建属于自己的AI大语言模型网站(需要chatgpt的api即可搭建运行)
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功