Skip to main content
Jakob K.
Associate
January 6, 2018
Question

X-CUBE-SPN7, 6Step_Lib.c

  • January 6, 2018
  • 0 replies
  • 727 views
Posted on January 06, 2018 at 01:24

Three questions regarding MC_SixStep_Ramp_Motor_calc()

1.) What unit do the mechanical acceleration rate parameters/variables have? (apparently not 1/min/s or rad/s²)

2.) 'mech_accel_hz = SIXSTEP_parameters.ACCEL * Rotor_poles_pairs / 60' - so 'mech_accel_hz' is rather the electrical acceleration than mechanical?

3.) I found that MCM_Sqrt() takes 1,3 .. 1,8 ms (32 MHz CCLK) while the (ARM-MDK) math library's sqrt() takes 150 .. 250µs. What is the benefit of using 

MCM_Sqrt()

?

Thanks for comments.

This topic has been closed for replies.