Working from the tutorials I wanted to try PID-controlling a second order linear system. I'm running into segfaults when simulating the closed loop. I've put my code over on Gist. It is mostly identical to the example in the dynamical systems tutorial.
Here's what works
- Simulating a diagram containing only the second order system
- Dropping in PendulumPlant for the second order system and using the controller
- Every step up to
simulator.AdvanceTo
- that's where the segfault occurs
I'm sure I am missing something obvious here. Does anyone with more experience see what's wrong?