你的浏览器版本过低,可能导致网站不能正常访问!
为了你能正常使用网站功能,请使用这些浏览器。

关于FOC库5.4的启动revup

[复制链接]
是谁事实上 提问时间:2022-6-23 14:53 / 已解决
亲们:
       FOC5.4的库里面启动这块的这个函数:__weak bool RUC_Exec( RevUpCtrl_Handle_t * pHandle )
里面的操作
      /*Set the next phases parameter pointer.*/
      pHandle->pCurrentPhaseParams = pHandle->pCurrentPhaseParams->pNext;
这里的pCurrentPhaseParams 定义到的结构体是这样的:
typedef struct
{
  uint16_t hDurationms;        
  int16_t hFinalMecSpeedUnit;   
  int16_t hFinalTorque;        
  void * pNext;               
} RevUpCtrl_PhaseParams_t;

那这个操作是啥意思呢?如下:
/*Set the next phases parameter pointer.*/
      pHandle->pCurrentPhaseParams = pHandle->pCurrentPhaseParams->pNext;

谢谢各位大神能指导一下下
收藏 评论2 发布时间:2022-6-23 14:53

举报

2个回答
弗兰克 最优答案 回答时间:2022-6-27 12:18:17
uint16_t hDurationms;   //当前阶段的爬坡时间     
  int16_t hFinalMecSpeedUnit;   //当前阶段的目标转速
  int16_t hFinalTorque;  //当前阶段的目标转矩      
  void * pNext;    //指向下一阶段的指针

也就是说开环的5个阶段,先执行第一个,然后依次执行           

是谁事实上 回答时间:2022-6-28 17:23:40
弗兰克 发表于 2022-6-27 12:18
uint16_t hDurationms;   //当前阶段的爬坡时间     
  int16_t hFinalMecSpeedUnit;   //当前阶段的目标转 ...

谢谢大哥,这里小弟明白了
关于意法半导体
我们是谁
投资者关系
意法半导体可持续发展举措
创新和工艺
招聘信息
联系我们
联系ST分支机构
寻找销售人员和分销渠道
社区
媒体中心
活动与培训
隐私策略
隐私策略
Cookies管理
行使您的权利
关注我们
st-img 微信公众号
st-img 手机版