コード例 #1
0
ファイル: sub.py プロジェクト: jar3dp/ecen490
def main():
    """ main method """

    print "Calibrating Roboclaws..."
    roboclaw.calibrateRoboclaws()
    print "...Done"

    try:
        thread.start_new_thread(receive, ("ReceiverThread", 1))
    except:
        print "Error: unable to start thread"

    mutex.acquire()

    one_on_one()
コード例 #2
0
ファイル: sub_ray.py プロジェクト: jar3dp/ecen490
def main():
    """ main method """

    print "Calibrating Roboclaws"
    roboclaw.calibrateRoboclaws()
    print "done"

    try:
        thread.start_new_thread(receive, ("ReceiverThread", 1))
    except:
        print "Error: unable to start thread"

    mutex.acquire()

    # follow_behind_ball()
    # rush_goal()
    # score_goal()
    #go_to_point_behind_ball()
    #one_on_one()
    test()