Controller with Live Plotting
1import numpy as np
2
3from aeroshield import AeroShield
4
5from pid_example import PIDController
6
7# set matplotlib to use separate plotting window
8%matplotlib
1# RUNNING THIS MIGHT KILL THE KERNEL (WHICH YOU CAN JUST RESTART, BUT STILL)
2
3controller = PIDController(AeroShield())
4hist = controller.run(200, 2000, 20*np.ones(2000), live_plot=True)