|
|
@@ -132,7 +132,7 @@ static u32 _app_report_task(void *p) {
|
|
|
sys_debug("throttle %f\n", get_throttle_float());
|
|
|
sys_debug("ADC Vref %f, %f\n", get_adc_vref(), adc_5vref_compesion());
|
|
|
sys_debug("Vdq in %f, %f\n", PMSM_FOC_Get()->in.s_targetVdq.d, PMSM_FOC_Get()->in.s_targetVdq.q);
|
|
|
- sys_debug("VDQ out %f, %f\n", PMSM_FOC_Get()->out.s_OutVdq.d, PMSM_FOC_Get()->out.s_OutVdq.q);
|
|
|
+ sys_debug("Vdq out %f, %f\n", PMSM_FOC_Get()->out.s_OutVdq.d, PMSM_FOC_Get()->out.s_OutVdq.q);
|
|
|
//sys_debug("target current %f\n", PMSM_FOC_Get()->in.s_targetCurrent);
|
|
|
//thro_torque_log();
|
|
|
//sys_debug("fan rpm %d, %d\n", mc_params()->fan[0].rpm, mc_params()->fan[1].rpm);
|
|
|
@@ -143,7 +143,7 @@ static u32 _app_report_task(void *p) {
|
|
|
}
|
|
|
return 200;
|
|
|
}
|
|
|
-static int plot_type = 1;
|
|
|
+static int plot_type = 7;
|
|
|
static void plot_smo_angle(void) {
|
|
|
float smo_angle = foc_observer_smo_angle();
|
|
|
float delta = smo_angle - PMSM_FOC_Get()->in.s_hallAngle;
|
|
|
@@ -174,7 +174,7 @@ static u32 _app_plot_task(void * args) {
|
|
|
}else if (plot_type == 6) {
|
|
|
can_plot2((s16)(PMSM_FOC_Get()->in.s_iABC[0]), (s16)(PMSM_FOC_Get()->in.s_iABC[1]));
|
|
|
}else if (plot_type == 7) {
|
|
|
- can_plot2((s16)PMSM_FOC_Get()->out.s_FilterIdq.d, (s16)PMSM_FOC_Get()->out.s_FilterIdq.q);
|
|
|
+ can_plot2((s16)PMSM_FOC_Get()->out.s_RealIdq.d, (s16)PMSM_FOC_Get()->out.s_RealIdq.q);
|
|
|
}
|
|
|
|
|
|
return 20;
|