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
import robot # dummy class | |
class PidController: | |
"""Implements a one-dimensional PID controller that also takes care of | |
integral windup in case of large changes in the setpoint. | |
""" | |
def __init__(self, gains=None, max_windup=None): | |
"""Initializes the PidController object | |
Arguments: |
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
import abc | |
class StackInterface(abc.ABC): | |
"""An abstract base class that defines a stack""" | |
@abc.abstractmethod | |
def is_empty(self): | |
"""Determines if the stack is empty | |
:return True if the stack is empty, False otherwise | |
""" |