News for hackers. Stuff that matters.
Re:Embedded Rules of Thumb (2018) by barbegal on Monday June 01, 2020 @08:03PM (#23385597)
> 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.

Re:Embedded Rules of Thumb (2018) by deepspace on Monday June 01, 2020 @11:47PM (#23387214)
True, 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.