|
|
@@ -42,11 +42,19 @@ float motor_get_lq_from_iq(s16 iq);
|
|
|
|
|
|
#define MOTOR_NR 0x11
|
|
|
#elif CONFIG_MOT_TYPE==MOTOR_BLUESHARK_A1
|
|
|
+#define MOTOR_STATOR_5N
|
|
|
+
|
|
|
+#ifndef MOTOR_STATOR_5N
|
|
|
#define MOTOR_R 0.011f //5N -> 0.0164/2
|
|
|
#define MOTOR_Ld (0.000140F*0.5f) //5N -> 0.000048
|
|
|
#define MOTOR_Lq (0.000356f*0.5f) //5N -> 0.0001335
|
|
|
#define MOTOR_Flux (0.013f)
|
|
|
-#define MOTOR_STATOR_5N
|
|
|
+#else
|
|
|
+#define MOTOR_R 0.009f
|
|
|
+#define MOTOR_Ld (0.000100F*0.5f) //5N -> 0.000048
|
|
|
+#define MOTOR_Lq (0.000240f*0.5f) //5N -> 0.0001335
|
|
|
+#define MOTOR_Flux (0.011f)
|
|
|
+#endif
|
|
|
|
|
|
#define MOTOR_POLES 4
|
|
|
#define MOTOR_ENC_OFFSET 0.0F
|