Hoverboard motor kontrol

hi. i wanna control a motor with position control. but motor going slowly to the target position. I want it to go very fast. How do I set acceleration values?

my motore parameters:
is_calibrated = True (bool)
current_meas_phC = 0.051324665546417236 (float)
thermal_current_lim = 44.50227737426758 (float)
phase_current_rev_gain = 0.012500000186264515 (float)
error = 0x0000 (int)
config:
direction = -1 (int)
current_control_bandwidth = 100.0 (float)
requested_current_range = 25.0 (float)
motor_type = 0 (int)
pole_pairs = 15 (int)
calibration_current = 10.0 (float)
resistance_calib_max_voltage = 4.0 (float)
phase_resistance = 0.20966990292072296 (float)
pre_calibrated = True (bool)
phase_inductance = 0.0003919401206076145 (float)
current_lim = 10.0 (float)
inverter_temp_limit_upper = 120.0 (float)
inverter_temp_limit_lower = 100.0 (float)
DC_calib_phC = -0.6958275437355042 (float)
gate_driver:
drv_fault = 0 (int)
armed_state = 0 (int)
current_control:
Iq_setpoint = 0.0 (float)
v_current_control_integral_d = 0.0 (float)
Iq_measured = 0.0 (float)
final_v_beta = 0.0 (float)
final_v_alpha = 0.0 (float)
i_gain = 20.966989517211914 (float)
p_gain = 0.0391940101981163 (float)
I_measured_report_filter_k = 1.0 (float)
Id_measured = 0.0 (float)
v_current_control_integral_q = 0.0 (float)
overcurrent_trip_level = 33.75 (float)
Ibus = 0.0 (float)
max_allowed_current = 30.375 (float)
DC_calib_phB = -1.1974929571151733 (float)
get_inverter_temp()
timing_log:
TIMING_LOG_ADC_CB_DC = 14550 (int)
TIMING_LOG_FOC_CURRENT = 0 (int)
TIMING_LOG_FOC_VOLTAGE = 0 (int)
TIMING_LOG_IDX_SEARCH = 0 (int)
TIMING_LOG_MEAS_R = 0 (int)
TIMING_LOG_ENC_CALIB = 0 (int)
TIMING_LOG_ADC_CB_I = 3878 (int)
TIMING_LOG_GENERAL = 0 (int)
TIMING_LOG_MEAS_L = 0 (int)
current_meas_phB = 0.009363770484924316 (float)

thanks

okay. i solved it increase the pos_gain parameters. for me i was set it to 10.

controller.config.vel_limit, and the gains.

1 Like