Browse Source

Foc_Cali_Hall_Phase 做零位置校准

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

+ 2 - 1
Applications/foc/commands.c

@@ -221,7 +221,8 @@ static void process_foc_command(foc_cmd_body_t *command) {
 		{
 			s16 vd = decode_s16((u8 *)command->data);
 			sys_debug("cali encoder %d\n", vd);
-			mc_encoder_off_calibrate((vd));
+			//mc_encoder_off_calibrate((vd));
+			mc_encoder_zero_calibrate(vd);
 			break;
 		}
 		case Foc_Set_Open_Dq_Vol: