Exemplo n.º 1
0
 def call_steady(self):
         global ultrasonicMode
         if funcMode == 0:
                 build_payload(client,topic, Queue_control,"steady")
                 ultrasonicMode = 1
         else:
                 build_payload(client,topic, Queue_control,"funEnd")
Exemplo n.º 2
0
 def call_headup(self,event):
         build_payload(client,topic, Queue_control,"headup")
Exemplo n.º 3
0
 def call_CRight(self):
         build_payload(client,topic, Queue_control,"c_right")
Exemplo n.º 4
0
 def call_CLeft(self):
         build_payload(client,topic, Queue_control,"c_left")
Exemplo n.º 5
0
 def call_RightSide(self):
         build_payload(client,topic, Queue_control,"in")
Exemplo n.º 6
0
 def call_LeftSide(self):
         build_payload(client,topic, Queue_control,"out")
Exemplo n.º 7
0
 def call_WatchDog(self):
         if funcMode == 0:
                 build_payload(client,topic, Queue_control,"WatchDog")
         else:
                 build_payload(client,topic, Queue_control,"funEnd")
Exemplo n.º 8
0
 def call_headright(self):
         build_payload(client,topic, Queue_control,"loose")
Exemplo n.º 9
0
 def call_Turn_stop(self):            #When this function is called,client commands the car to stop moving
         ts = "TS"
         build_payload(client,topic, Queue_control,ts)
Exemplo n.º 10
0
        def call_FB_stop(self):            #When this function is called,client commands the car to stop moving
                ds ="DS"
                time.sleep(0.03)

                build_payload(client,topic, Queue_control,ds)
Exemplo n.º 11
0
 def call_back(self):            #When this function is called,client commands the car to move backward
         down = "backward"
         time.sleep(0.03)
         build_payload(client,topic, Queue_control, down)
Exemplo n.º 12
0
 def call_forward(self):         #When this function is called,client commands the car to move forward
         up = "forward"
         time.sleep(0.03)
         build_payload(client,topic, Queue_control, up)
Exemplo n.º 13
0
 def set_B(self):
         time.sleep(0.03)
         build_payload(client,topic, Queue_control,('wsB %s'%var_B.get()))
Exemplo n.º 14
0
 def call_FindLine(self):
         if funcMode == 0:
                 build_payload(client,topic, Queue_control,"FindLine")
         else:
                 build_payload(client,topic, Queue_control,"funEnd")
Exemplo n.º 15
0
 def call_headdown(self):
         build_payload(client,topic, Queue_control,"headdown")
Exemplo n.º 16
0
 def call_headleft(self):
         build_payload(client,topic, Queue_control,"catch")
Exemplo n.º 17
0
 def call_Left(self):            #When this function is called,client commands the car to turn left
         left = "left"
         build_payload(client, topic , Queue_control, left)
Exemplo n.º 18
0
 def call_headhome(self):
         build_payload(client,topic, Queue_control,"headhome")
Exemplo n.º 19
0
 def call_Right(self):           #When this function is called,client commands the car to turn right
         build_payload(client,topic, Queue_control,"right")