Commit ebd4906
committed
move the sensor calls to before the enable checks in move and loopFOC
this enables two things:
1. you can still see the sensors change and update in SimpleFOCStudio
even if you disable the motor. This is useful to determine sensor
accuracy etc.
2. you previously ran the risk of losing track of full rotations if the
motor was (e.g. manually) moved while disabled. With this change we
always track the sensor values and keep track of all rotations.1 parent c43f1e3 commit ebd4906
1 file changed
+8
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
247 | 251 | | |
248 | 252 | | |
249 | 253 | | |
250 | 254 | | |
251 | 255 | | |
252 | | - | |
253 | | - | |
254 | 256 | | |
255 | 257 | | |
256 | 258 | | |
| |||
295 | 297 | | |
296 | 298 | | |
297 | 299 | | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
298 | 304 | | |
299 | 305 | | |
300 | 306 | | |
301 | 307 | | |
302 | 308 | | |
303 | 309 | | |
304 | 310 | | |
305 | | - | |
306 | | - | |
307 | 311 | | |
308 | 312 | | |
309 | 313 | | |
| |||
0 commit comments