예제 #1
0
 def addWaypoint(self, wayList):        #add waypoint list
     self.wayListCount=0
      #If this is the first waypoint we send, do not send a carrot.
     string = Packet.createWaypointPacket(wayList, self.firstWaypoint)
     #for waypoints in wayList:
     self.wayListCount = len(wayList)
         
     self.firstWaypoint=False
      
     
    
     
     if(self.waypointCount > 0): 
         string += Packet.getCurrentMode()
     else: 
         string += Packet.setInitalMode()
     self.setLine(string) 
   
     self.waypointCount=self.waypointCount + 1 
예제 #2
0
 def getCurrentTruckMode(self):
     return Packet.getCurrentMode()