2 ms·
> Controlling the motor is a real-time digital control system task, and it needs to be executed at exact time intervals This is correct but also the accelerome
by barbegal 6y ago
> Controlling the motor is a real-time digital control system task, and it needs to be executed at exact time intervals
This is correct but also the accelerometer data needs to be sampled at the same interval. For this reason, running the control algorithm in lock step with the sensor may be sensible.
- deepspace 6y agoTrue, but sensors do not generally output data at fixed intervals, which is why the most common method is to have the control loop run on a timer interrupt and to have it sample the sensor.