agimus_sot.control.switch.ControllerSwitch Class Reference

Public Member Functions

def __init__ (self, name, controllers, threshold_up, threshold_down)
 
def setMeasurement (self, sig)
 
def thresholdUp (self)
 
def thresholdDown (self)
 
def signalOut (self)
 
def signalIn (self, n)
 
def conditionUp (self)
 
def conditionDown (self)
 
def eventUp (self)
 
def eventDown (self)
 
def latch (self)
 
def switch (self)
 

Public Attributes

 reverse
 

Constructor & Destructor Documentation

◆ __init__()

def agimus_sot.control.switch.ControllerSwitch.__init__ (   self,
  name,
  controllers,
  threshold_up,
  threshold_down 
)
Use controller 0 until the condition signal value becomes greater than threshold.
Then use controller 1. Manually switch between controller using the latch.
OFF means controller 0 and ON means controller 1.

Currently support only two controllers.
- controllers: output signal of a controller

Member Function Documentation

◆ conditionDown()

def agimus_sot.control.switch.ControllerSwitch.conditionDown (   self)

◆ conditionUp()

def agimus_sot.control.switch.ControllerSwitch.conditionUp (   self)

◆ eventDown()

def agimus_sot.control.switch.ControllerSwitch.eventDown (   self)

◆ eventUp()

def agimus_sot.control.switch.ControllerSwitch.eventUp (   self)

◆ latch()

def agimus_sot.control.switch.ControllerSwitch.latch (   self)

◆ setMeasurement()

def agimus_sot.control.switch.ControllerSwitch.setMeasurement (   self,
  sig 
)

References agimus_sot.control.switch.ControllerSwitch._condition_down, agimus_sot.control.switch.ControllerSwitch._condition_up, and agimus_sot.control.switch.ControllerSwitch.reverse.

◆ signalIn()

def agimus_sot.control.switch.ControllerSwitch.signalIn (   self,
  n 
)

◆ signalOut()

def agimus_sot.control.switch.ControllerSwitch.signalOut (   self)

◆ switch()

def agimus_sot.control.switch.ControllerSwitch.switch (   self)

◆ thresholdDown()

def agimus_sot.control.switch.ControllerSwitch.thresholdDown (   self)

References agimus_sot.control.switch.ControllerSwitch._condition_down, and agimus_sot.control.switch.ControllerSwitch.reverse.

◆ thresholdUp()

def agimus_sot.control.switch.ControllerSwitch.thresholdUp (   self)

References agimus_sot.control.switch.ControllerSwitch._condition_up, and agimus_sot.control.switch.ControllerSwitch.reverse.

Member Data Documentation

◆ reverse