Пример #1
0
    def reverseHamperBelt(self):
        msg = ConveyorMsg()
        msg.frontConveyorFractionOn = 0.0
        msg.backConveyorFractionOn = -.1
        self.conveyorPub.publish(msg)

        return
Пример #2
0
    def reverseEatingBelts(self):

        msg = ConveyorMsg()
        msg.frontConveyorFractionOn = -.1
        msg.backConveyorFractionOn = 0.0
        self.conveyorPub.publish(msg)
        
        return
Пример #3
0
    def stopConveyorBelts(self):
        
        msg = ConveyorMsg()
        msg.frontConveyorFractionOn = 0.0
        msg.backConveyorFractionOn = 0.0
        self.conveyorPub.publish(msg)

        return
Пример #4
0
    def startBothBelts(self):

        # tell right conveor motor to start at standard speed
        msg = ConveyorMsg()
        msg.frontConveyorFractionOn = 1.0
        msg.backConveyorFractionOn = 1.0
        self.conveyorPub.publish(msg)
        
        return