1
0
mirror of https://github.com/rene-dev/stmbl.git synced 2024-12-25 10:02:18 +00:00
stmbl/conf/template/pmsm.txt

25 lines
714 B
Plaintext
Raw Permalink Normal View History

2017-07-09 22:03:00 +00:00
load pmsm_limits
load pmsm_ttc
pmsm_limits0.rt_prio = 7
pmsm_ttc0.rt_prio = 9
pmsm_limits0.r = conf0.r
pmsm_limits0.ld = conf0.l
pmsm_limits0.lq = conf0.l
pmsm_limits0.psi = conf0.psi
pmsm_limits0.j = conf0.j
pmsm_limits0.polecount = conf0.polecount
pmsm_ttc0.psi = conf0.psi
pmsm_ttc0.polecount = conf0.polecount
pmsm_limits0.ac_volt = hv0.pwm_volt
pmsm_limits0.iq = hv0.q_fb
pmsm_limits0.id = hv0.d_fb
2018-03-23 14:27:11 +00:00
pmsm_ttc0.pos_in = vel2.pos_out
2017-07-09 22:03:00 +00:00
pid0.max_torque = pmsm_limits0.max_torque
pid0.min_torque = pmsm_limits0.min_torque
pid0.max_vel = pmsm_limits0.abs_max_vel
pmsm_ttc0.torque = pid0.torque_cor_cmd
2017-10-02 22:30:42 +00:00
hv0.d_cmd = fb_switch0.id
2017-07-09 22:03:00 +00:00
hv0.q_cmd = pmsm_ttc0.cur
2017-09-06 00:00:49 +00:00
hv0.cmd_mode = 1
hv0.phase_mode = 2
2018-03-23 14:27:11 +00:00
hv0.pos = pmsm_ttc0.pos_out