Programme carte strategie (disco)

Dependencies:   mbed SerialHalfDuplex SDFileSystem DISCO-F469NI_portrait liaison_Bluetooth ident_crac

Revision:
54:8996a5b18d9b
Parent:
53:e96acb11a51f
Child:
55:1e3dab1f90f4
diff -r e96acb11a51f -r 8996a5b18d9b Strategie/Strategie.cpp
--- a/Strategie/Strategie.cpp	Wed May 22 09:52:00 2019 +0000
+++ b/Strategie/Strategie.cpp	Thu May 23 07:54:38 2019 +0000
@@ -4,7 +4,7 @@
 #include <math.h>
 //#include "StrategieManager.h"
 
-
+3
 
 #define M_PI 3.14159265358979323846
 #define VERT 0xFF00FF00
@@ -1845,7 +1845,7 @@
                     float x_robot_adversaire = x_robot + (dist_robot_adversaire)*cos((float)(theta_adversaire)* M_PI/1800);
                     float y_robot_adversaire = y_robot + (dist_robot_adversaire)*sin((float)(theta_adversaire)*M_PI/1800);
                     
-                    x_cote_droit[0] = x_robot_adversaire + (proxy)*cos((float)(theta_adversaire+ang_target-1300)*M_PI/1800);
+                    x_cote_droit[0] = x_robot_adversaire + (proxy)*cos((float)(theta_adversaire+ang_target-1300.0)*M_PI/1800);
                     y_cote_droit[0] = y_robot_adversaire + (proxy)*sin((float)(theta_adversaire+ang_target-1300)*M_PI/1800);
                     x_cote_gauche[0] = x_robot_adversaire + (proxy)*cos((float)(theta_adversaire+ang_target+1300)*M_PI/1800);
                     y_cote_gauche[0] = y_robot_adversaire + (proxy)*sin((float)(theta_adversaire+ang_target+1300)*M_PI/1800);