|
Brick
|
#include <bang_bang.h>
Feedback child class to create pulse-width-modulation loops.
Public Member Functions | |
| void | reset () override |
| Resets the internal state of the BangBang controller. | |
| virtual bool | update (const double &state, const double &reference, const units::Time &dt=10_ms) override |
| Updates the BangBang controller output. | |
| Public Member Functions inherited from Feedback< double, bool > | |
| bool | get_output () |
| Gets the last saved output value. | |
| bool | get_last_error () |
| Gets the last saved error. | |
| double | get_reference () |
| Gets the currently stored reference state. | |
| double | get_state () |
| Gets the currently stored state. | |
Additional Inherited Members | |
| Public Attributes inherited from Feedback< double, bool > | |
| bool | output_min_ |
| bool | output_max_ |
| Protected Attributes inherited from Feedback< double, bool > | |
| double | reference_ |
| double | state_ |
| double | last_error_ |
| bool | output_ |
|
overridevirtual |
Resets the internal state of the BangBang controller.
Implements Feedback< double, bool >.
|
overridevirtual |
Updates the BangBang controller output.
| state | the current state the BangBand controller is at |
| reference | the target state for the BangBang controller |
| dt | the timestep since the last time this method was called |
Implements Feedback< double, bool >.