@@ -388,9 +388,9 @@ system, simplifying the definitions and (in the future) allowing assignments bac
388
388
by solving the nonlinear reinitialization problem afterwards.
389
389
390
390
We will use two examples to describe ` ImperativeAffect ` : a simple heater and a quadrature encoder.
391
- These examples will also demonstrate advanced usage of ` ModelingToolkit.SymbolicContinousCallback ` ,
391
+ These examples will also demonstrate advanced usage of ` ModelingToolkit.SymbolicContinuousCallback ` ,
392
392
the low-level interface that the aforementioned tuple form converts into and allows control over the
393
- exact SciMLCallbacks event that is generated for a continous event.
393
+ exact SciMLCallbacks event that is generated for a continuous event.
394
394
395
395
### [ Heater] (@id heater_events)
396
396
@@ -405,7 +405,7 @@ eqs = [
405
405
```
406
406
407
407
Our plant is simple. We have a heater that's turned on and off by the clocked parameter ` furnace_on `
408
- which adds ` furnace_power ` forcing to the system when enabled. We then leak heat porportional to ` leakage `
408
+ which adds ` furnace_power ` forcing to the system when enabled. We then leak heat proportional to ` leakage `
409
409
as a function of the square of the current temperature.
410
410
411
411
We need a controller with hysteresis to conol the plant. We wish the furnace to turn on when the temperature
@@ -537,7 +537,7 @@ then invoked to update the count with this new information.
537
537
We can implement this in one of two ways: using edge sign detection or right root finding. For exposition, we
538
538
will implement each sensor differently.
539
539
540
- For sensor A, we're using the edge detction method. By providing a different affect to ` SymbolicContinuousCallback ` 's
540
+ For sensor A, we're using the edge detection method. By providing a different affect to ` SymbolicContinuousCallback ` 's
541
541
` affect_neg ` argument, we can specify different behaviour for the negative crossing vs. the positive crossing of the root.
542
542
In our encoder, we interpret this as occlusion or nonocclusion of the sensor, update the internal state, and tick the decoder.
543
543
0 commit comments