Example #1
0
    def __init__(self,
                 vehicle_event_dispatcher,
                 ui_event_dispatcher,
                 parent=None):
        super(MotorCommandController, self).__init__(parent)
        BasePanelController.__init__(self)
        self.ui = MotorCommandPanel()
        self.ui.setupUi(self)
        self.ui.sendButton.setEnabled(False)
        self.ui.clearButton.setEnabled(False)

        self.started = False

        # Connect GUI slots and signals
        self.ui.sendButton.clicked.connect(self.sendCommand)
        self.ui.clearButton.clicked.connect(self.clearCommand)