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
def getCurrentTruckMode(self): return Packet.getCurrentMode()