2017-07-14 03:41:11 +00:00
|
|
|
load res
|
|
|
|
res0.rt_prio = 2
|
2018-03-09 11:23:17 +00:00
|
|
|
res0.sin = adc0.sin0
|
|
|
|
res0.cos = adc0.cos0
|
2018-02-03 06:59:22 +00:00
|
|
|
adc0.res_mode = res0.res_mode
|
2017-07-14 03:41:11 +00:00
|
|
|
res0.quad = adc0.quad
|
|
|
|
res0.poles = conf0.mot_fb_polecount
|
2017-10-02 19:13:59 +00:00
|
|
|
fb_switch0.mot_pos = res0.pos
|
|
|
|
fb_switch0.mot_abs_pos = res0.pos
|
2017-07-14 03:41:11 +00:00
|
|
|
fb_switch0.mot_polecount = conf0.mot_fb_polecount
|
2017-10-02 19:13:59 +00:00
|
|
|
fb_switch0.mot_state = res0.state
|
2017-07-14 03:41:11 +00:00
|
|
|
fault0.mot_fb_error = res0.error
|
2017-10-02 19:13:59 +00:00
|
|
|
res0.vel = fb_switch0.mot_vel
|
2017-07-23 22:58:34 +00:00
|
|
|
io0.fb0y = res0.error
|
|
|
|
io0.fb0g = 1
|