diff --git a/asset/map/map1.blend b/asset/map/map1.blend index 16a36a4..308bb2e 100644 Binary files a/asset/map/map1.blend and b/asset/map/map1.blend differ diff --git a/ropy-34.blend b/ropy-34.blend index 8ff7c35..61942a0 100644 Binary files a/ropy-34.blend and b/ropy-34.blend differ diff --git a/rp_cmd-bak.py b/rp_cmd-bak.py index ea9514b..710c238 100644 --- a/rp_cmd-bak.py +++ b/rp_cmd-bak.py @@ -30,14 +30,16 @@ def commandes(): # Ecrire votre code ici ... rp_avancer() - rp_fin() # A garder - ############################################################################### # En: External call << DONT CHANGE THIS SECTION >> # Fr: Appel externe << NE PAS MODIFIER CETTE SECTION >> ############################################################################### +def cycle(): + commandes() + rp_fin() + if __name__=='start': - thread_cmd_start(commandes) + thread_cmd_start(cycle) if __name__=='stop': thread_cmd_stop() diff --git a/rp_cmd.py b/rp_cmd.py index 5709770..4f2e685 100644 --- a/rp_cmd.py +++ b/rp_cmd.py @@ -32,16 +32,18 @@ def commandes(): print ('Go go go ...') - # mrp_avancer() - # mrp_avancer() - # mrp_avancer() + mrp_avancer() + mrp_avancer() + mrp_avancer() - rp_gauche() - while rp_detect()==False: - rp_avancer() - rp_droite() - while rp_detect()==False: - rp_avancer() + while True: + rp_droite() + + # while rp_detect()==False: + # rp_avancer() + # rp_droite() + # while rp_detect()==False: + # rp_avancer() # rp_avancer() # rp_droite() @@ -53,14 +55,16 @@ def commandes(): # rp_avancer() # rp_marquer() - rp_fin() # A garder - ############################################################################### # En: External call << DONT CHANGE THIS SECTION >> # Fr: Appel externe << NE PAS MODIFIER CETTE SECTION >> ############################################################################### +def cycle(): + commandes() + rp_fin() + if __name__=='start': - thread_cmd_start(commandes) + thread_cmd_start(cycle) if __name__=='stop': thread_cmd_stop() diff --git a/rp_config.xml b/rp_config.xml index 7021146..ec03aeb 100644 --- a/rp_config.xml +++ b/rp_config.xml @@ -3,9 +3,9 @@ 4.0 False - -3.7522060871124268 - -18.188343048095703 - 15.865280151367188 + 2.3307816982269287 + -43.80031204223633 + 36.77288055419922 1639 @@ -14,8 +14,8 @@ - 6 - 6 + 1 + 1 True diff --git a/rp_lib.py b/rp_lib.py index ced04a9..5eaf332 100644 --- a/rp_lib.py +++ b/rp_lib.py @@ -495,7 +495,9 @@ def rp_droite (twins=True): scene.objects['Rv-Wheel-left-rear'].playAction('Wheel-Avancer', start, end, layer, priority, blendin, mode, layerWeight, ipoFlags, speed) while scene.objects['Rv-Wheel-right-front'].isPlayingAction(): # Forçage du redraw # scene.objects['Camera'].applyMovement((0, 0, 0), True) - scene.objects['Sun'].applyMovement((0, 0, 0), True) + pass + # rp_sleep(0.1) + # scene.objects['Sun'].applyMovement((0, 0, 0), True) rp_tempo (0.1) return True