Browse Source

电机外特性放到XX_motor_config.c中

Signed-off-by: huhui <huhui@sharkgulf.com>
huhui 3 years ago
parent
commit
920d8ca2cf
2 changed files with 16 additions and 13 deletions
  1. 15 0
      Applications/foc/motor/A1_motor_config.c
  2. 1 13
      Applications/foc/motor/motor_param.c

+ 15 - 0
Applications/foc/motor/A1_motor_config.c

@@ -120,3 +120,18 @@ static torque_map_t mtpa_fw_map[10][10] = {
 		{ 1930, -1810, 670 }, // 电流矢量V:193.0026, D轴电流:-181, Q轴电流:67
 	},
 };
+
+static motor_map_t mot_map[] = {
+	{0, 400},
+	{3000, 400},
+	{4000, 322},
+	{4500, 276},
+	{5000, 246},
+	{5500, 230},
+	{6000, 220},
+	{6500, 208},
+	{7000, 208},
+	{7500, 203},
+	{8000, 193},
+};
+

+ 1 - 13
Applications/foc/motor/motor_param.c

@@ -10,19 +10,7 @@
 #define TRQ_MAX_IDX 10
 static int map_rpm[] = {3000, 4000, 4500, 5000, 5500, 6000, 6500, 7000, 7500, 8000};
 #include "foc/motor/A1_motor_config.c"
-static motor_map_t mot_map[] = {
-	{0, 400},
-	{3000, 400},
-	{4000, 322},
-	{4500, 276},
-	{5000, 246},
-	{5500, 230},
-	{6000, 220},
-	{6500, 208},
-	{7000, 208},
-	{7500, 203},
-	{8000, 193},
-};
+
 #endif
 
 /* 根据电机外特性map,获取当前转速下的最大扭矩,主要给计算当前扭矩需求使用 */