1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- /**
- * @file motor_pu_base.h
- * @author Xiao Lifan (xiaolf6@midea.com)
- * @brief 基值系统定义
- * @version 0.1
- * @date 2023-03-22
- *
- * @copyright Copyright (c) 2023
- *
- */
- #ifndef _MOTOR_PU_BASE_H_
- #define _MOTOR_PU_BASE_H_
- #include "test_typedefine.h"
- #ifdef __cplusplus
- extern "C" {
- #endif // __cplusplus
- /**
- * @brief 电机基值系统输入量/基本基值
- * @note 所有值均为Q0
- *
- */
- typedef struct McPuBaseIn
- {
- u16 Pairsb; /**< Unit: None */
- u16 UbVt; /**< Unit: 0.1 V */
- u16 IbAp; /**< Unit: 0.01 A */
- u16 FbHz; /**< Unit: Hz */
- } McPuBaseIn;
- /**
- * @brief 电机基值
- * @note 所有值均为Q0
- *
- */
- typedef struct McPuBase
- {
- u16 uwPairsb; /**< Unit: None */
- u16 uwUbVt; /**< Unit: 0.1 V */
- u16 uwIbAp; /**< Unit: 0.01 A */
- u16 uwFbHz; /**< Unit: Hz */
- u16 uwVbRpm; /**< Unit: RPM */
- u16 uwPbW; /**< Unit: 0.1 W */
- u16 uwRbOhm; /**< Unit: 0.01 Ohm */
- u16 uwWeb; /**< Unit: s^-1 */
- u16 uwTbUs; /**< Unit: 0.1 us */
- u16 uwLbHm; /**< Unit: 0.01 mH */
- u16 uwFluxbWeb; /**< Unit: 0.01 mWb */
- u16 uwTqbNm; /**< Unit: Nm */
- u16 uwJbKgm2; /**< Unit: 1e-10 kg.m^2 */
- } McPuBase;
- /**
- * @brief 初始化电机基值
- *
- * @param base 电机基本基值与推导基值
- * @param in 电机基本基值
- */
- void McPuBaseInit(McPuBase *base, McPuBaseIn *in);
- #ifdef __cplusplus
- }
- #endif // __cplusplus
- #endif
|