stmbl/conf/template/res_fb0.txt

16 lines
402 B
Plaintext

load res
res0.rt_prio = 2
res0.sin = adc0.sin0
res0.cos = adc0.cos0
adc0.res_mode = res0.res_mode
res0.quad = adc0.quad
res0.poles = conf0.mot_fb_polecount
fb_switch0.mot_pos = res0.pos
fb_switch0.mot_abs_pos = res0.pos
fb_switch0.mot_polecount = conf0.mot_fb_polecount
fb_switch0.mot_state = res0.state
fault0.mot_fb_error = res0.error
res0.vel = fb_switch0.mot_vel
io0.fb0y = res0.error
io0.fb0g = 1