HPM SDK
HPMicro Software Development Kit
bldc_contrl_spd_par Struct Reference

Speed calculation parameters. More...

#include <hpm_bldc_define.h>

Data Fields

uint16_t i_speedacq
 
uint16_t num
 
HPM_MOTOR_MATH_TYPE i_speedlooptime_s
 
HPM_MOTOR_MATH_TYPE speedtheta
 
HPM_MOTOR_MATH_TYPE speedlasttheta
 
HPM_MOTOR_MATH_TYPE speedthetalastn
 
HPM_MOTOR_MATH_TYPE i_speedfilter
 
HPM_MOTOR_MATH_TYPE o_speedout_filter
 
HPM_MOTOR_MATH_TYPE o_speedout
 
hpm_motor_para_ti_motorpar
 
void(* func_getspd )(void *str)
 

Detailed Description

Speed calculation parameters.

Field Documentation

◆ func_getspd

void(* bldc_contrl_spd_par::func_getspd) (void *str)

Speed calculation function

◆ i_motorpar

hpm_motor_para_t* bldc_contrl_spd_par::i_motorpar

Motor operating parameters

◆ i_speedacq

uint16_t bldc_contrl_spd_par::i_speedacq

Update velocity data once after collecting n times of angle data

◆ i_speedfilter

HPM_MOTOR_MATH_TYPE bldc_contrl_spd_par::i_speedfilter

Low-pass filter coefficient

◆ i_speedlooptime_s

HPM_MOTOR_MATH_TYPE bldc_contrl_spd_par::i_speedlooptime_s

Time for n cycles. Unit s

◆ num

uint16_t bldc_contrl_spd_par::num

Internal Data

◆ o_speedout

HPM_MOTOR_MATH_TYPE bldc_contrl_spd_par::o_speedout

Speed before filter

◆ o_speedout_filter

HPM_MOTOR_MATH_TYPE bldc_contrl_spd_par::o_speedout_filter

Speed after filter

◆ speedlasttheta

HPM_MOTOR_MATH_TYPE bldc_contrl_spd_par::speedlasttheta

Internal Data

◆ speedtheta

HPM_MOTOR_MATH_TYPE bldc_contrl_spd_par::speedtheta

Current motor angle

◆ speedthetalastn

HPM_MOTOR_MATH_TYPE bldc_contrl_spd_par::speedthetalastn

Internal Data, Initialization Clear


The documentation for this struct was generated from the following file: