Example #1
0
    def test_set_heading(self):
        orb = Sphero(MyTestCase.SPHERO)
        orb.connect()

        orb.set_tail_light(255)

        orb.set_stabilization(False)

        print("Move Sphero so tail is heading to -y")
        input("Press Enter to continue...")

        orb.set_stabilization(True)

        orb.set_tail_light(0)
        time.sleep(3)
Example #2
0
    def test_set_heading(self):
        orb = Sphero(MyTestCase.SPHERO)
        orb.connect()

        orb.set_tail_light(255)

        orb.set_heading(0)
        time.sleep(2)

        orb.set_heading(90)
        time.sleep(2)

        orb.set_heading(180)
        time.sleep(2)

        orb.set_heading(270)
        time.sleep(2)

        orb.set_tail_light(0)
        time.sleep(3)