HPM SDK
HPMicro Software Development Kit
hpm_mcl_uvw.c File Reference
#include "hpm_mcl_uvw.h"

Functions

hpm_mcl_stat_t hpm_mcl_uvw_get_theta (void *encoder_base, uint8_t *last_pos, float deta_theta, float *theta)
 Getting the angle in uvw mode. More...
 

Function Documentation

◆ hpm_mcl_uvw_get_theta()

hpm_mcl_stat_t hpm_mcl_uvw_get_theta ( void *  encoder_base,
uint8_t *  last_pos,
float  deta_theta,
float *  theta 
)

Getting the angle in uvw mode.

Parameters
encoder_baseHALL or QEIV2 Base
last_posGlobal variables with initial value zero
deta_thetaAngle value per call
thetaCurrent angle value
Returns
hpm_mcl_stat_t