Browse Source

加入转把电压的示波器显示

Signed-off-by: huhui <huhui@sharkgulf.com>
huhui 2 years ago
parent
commit
037883990d
1 changed files with 3 additions and 2 deletions
  1. 3 2
      Applications/app/app.c

+ 3 - 2
Applications/app/app.c

@@ -206,9 +206,10 @@ static u32 _app_plot_task(void * args) {
 		can_plot2((s16)(target_q*10.0f), (s16)(PMSM_FOC_Get()->out.s_RealIdq.q * 10.0f));
 		can_plot2((s16)(target_q*10.0f), (s16)(PMSM_FOC_Get()->out.s_RealIdq.q * 10.0f));
 		#endif
 		#endif
 	}else if (plot_type == 9) {
 	}else if (plot_type == 9) {
-		can_plot3((s16)F_get_air(), (s16)F_get_accl(), (s16)F_get_Te());
+		s16 thro_v = get_throttle_float() * 100.0f;
+		s16 thro2_v = get_throttle2_float() * 100.0f;
+		can_plot2(thro_v, thro2_v);
 	}
 	}
-	
 	return 20;
 	return 20;
 }
 }
 static u32 _app_low_task(void *args) {
 static u32 _app_low_task(void *args) {