Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change PWM discrete integration once more
collect all updates until a state flip happens (or a lot of time passed), now also for lamps then chunk up the collected time in equal timesteps, being as close to 1ms as possible (unless <1ms passed, this uses that small timestep then, there is no other way) integrate as before, but now no more tiny leftovers need to be processed that could significantly falsify the IIR and lamp/filament temperature computations (that all rely on roughly equal timesteps)
- Loading branch information
Showing
2 changed files
with
48 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters