diff --git a/ropy-28.blend b/ropy-28.blend index 62668c4..1bb57a5 100644 Binary files a/ropy-28.blend and b/ropy-28.blend differ diff --git a/rp.py b/rp.py index 6470434..2fe7bd7 100644 --- a/rp.py +++ b/rp.py @@ -237,9 +237,10 @@ def terrain_run (): # Démarrage de la map if scene.objects['Terrain']['thread_cmd']==False: + time.sleep(0.125) scene.objects['Terrain']['thread_cmd']=True rp_map.map_reset() - time.sleep(0.25) + time.sleep(0.125) # Nombre de ligne du script Python # print (os.getcwd()) diff --git a/rp_cmd.py b/rp_cmd.py index 1febc6a..360433b 100644 --- a/rp_cmd.py +++ b/rp_cmd.py @@ -22,58 +22,15 @@ from rp_lib import * # Bibliothèque Ropy # Fonctions ############################################################################### - -def mrp_marquer_couleur(): - global j - rp_marquer() - time.sleep(1) - rp_couleur("Balise "+str(j), (j/100, j/100, 1, 1)) # Balise - j+=1 - -def mrp_avancer(): - if rp_detect()==False: - rp_avancer() - rp_marquer() - # mrp_marquer_couleur() - -def mrp_avancer_nbpas(pas): - for i in range (pas): - mrp_avancer() - -def mrp_avancer_mur(): - while rp_detect()==False: - mrp_avancer() - -def mrp_avancer_mur_sb(): # sb = sans balise - while rp_detect()==False: - rp_avancer() - ############################################################################### # Commandes ############################################################################### def commandes(): - # Mission 6 - rp_gauche() - mrp_avancer_mur_sb() - rp_droite() - mrp_avancer_mur_sb() - rp_gauche() - mrp_avancer_mur_sb() - rp_gauche() - - for i in range (5): - mrp_avancer_nbpas(9) - rp_gauche() - mrp_avancer() - rp_gauche() - mrp_avancer_nbpas(9) - rp_droite() - mrp_avancer() - rp_droite() + # Ecrire votre code ici ... - rp_fin() + rp_fin() # A garder ############################################################################### # En: Externals calls << DONT CHANGE THIS SECTION >> diff --git a/rp_config.xml b/rp_config.xml index cdd041e..f13a7df 100644 --- a/rp_config.xml +++ b/rp_config.xml @@ -1,6 +1,6 @@ - 4.0 + 1.0 False 0.0057830810546875 diff --git a/rp_lib.py b/rp_lib.py index b9df227..21e4788 100644 --- a/rp_lib.py +++ b/rp_lib.py @@ -133,7 +133,9 @@ def thread_gostore_stop(): def rp_end(): if (debug_thread): print ("Thread commands is arrived.") + time.sleep(0.125) scene.objects['Terrain']['thread_cmd']=False + time.sleep(0.125) def rp_fin(): rp_end()