diff --git a/Drivers/Src/TIMER.c b/Drivers/Src/TIMER.c
index 5b30ccc..a8a21cd 100644
--- a/Drivers/Src/TIMER.c
+++ b/Drivers/Src/TIMER.c
@@ -29,6 +29,7 @@ void MyTimer_Base_Init ( MyTimer_Struct_TypeDef * Timer)
void MyPWM_init ( TIM_TypeDef * Timer,char Channel)
{
+ TIM1->BDTR |= TIM_BDTR_MOE;
if(Channel==1)
{
Timer->CCMR1&=~0x00FF;
diff --git a/Projet_voile/Sources/Girouette.c b/Projet_voile/Sources/Girouette.c
index 26d2027..fdf5d28 100644
--- a/Projet_voile/Sources/Girouette.c
+++ b/Projet_voile/Sources/Girouette.c
@@ -21,6 +21,7 @@ void Test_tour_girouette(void){
if(MyGPIO_Read(GPIOC3.GPIO, GPIOC3.GPIO_Pin))
{
Reset_degree();
+
}
}
diff --git a/Projet_voile/TP1.uvoptx b/Projet_voile/TP1.uvoptx
index 294d18c..e2989fd 100644
--- a/Projet_voile/TP1.uvoptx
+++ b/Projet_voile/TP1.uvoptx
@@ -328,7 +328,7 @@
0
DLGTARM
- (1010=457,337,833,894,0)(1007=-1,-1,-1,-1,0)(1008=-1,-1,-1,-1,0)(1009=-1,-1,-1,-1,0)(100=-1,-1,-1,-1,0)(110=-1,-1,-1,-1,0)(111=-1,-1,-1,-1,0)(1011=-1,-1,-1,-1,0)(180=-1,-1,-1,-1,0)(120=919,465,1340,870,0)(121=996,383,1417,788,0)(122=353,663,774,1068,0)(123=-1,-1,-1,-1,0)(140=1031,78,1719,418,0)(240=1050,425,1449,770,0)(190=-1,-1,-1,-1,0)(200=-1,-1,-1,-1,0)(170=-1,-1,-1,-1,0)(130=1066,271,1660,965,0)(131=-1,-1,-1,-1,0)(132=854,318,1448,1012,0)(133=139,242,733,936,0)(160=914,540,1362,954,0)(161=-1,-1,-1,-1,0)(162=-1,-1,-1,-1,0)(210=-1,-1,-1,-1,0)(211=-1,-1,-1,-1,0)(220=-1,-1,-1,-1,0)(221=-1,-1,-1,-1,0)(230=-1,-1,-1,-1,0)(231=-1,-1,-1,-1,0)(232=-1,-1,-1,-1,0)(233=-1,-1,-1,-1,0)(150=-1,-1,-1,-1,0)(151=-1,-1,-1,-1,0)
+ (1010=457,337,833,894,0)(1007=-1,-1,-1,-1,0)(1008=-1,-1,-1,-1,0)(1009=-1,-1,-1,-1,0)(100=-1,-1,-1,-1,0)(110=-1,-1,-1,-1,0)(111=-1,-1,-1,-1,0)(1011=-1,-1,-1,-1,0)(180=-1,-1,-1,-1,0)(120=1478,659,1899,1064,1)(121=996,383,1417,788,1)(122=353,663,774,1068,0)(123=-1,-1,-1,-1,0)(140=1031,78,1719,418,0)(240=1050,425,1449,770,0)(190=-1,-1,-1,-1,0)(200=-1,-1,-1,-1,0)(170=-1,-1,-1,-1,0)(130=815,202,1409,896,1)(131=-1,-1,-1,-1,0)(132=854,318,1448,1012,0)(133=139,242,733,936,0)(160=1441,248,1889,662,1)(161=-1,-1,-1,-1,0)(162=-1,-1,-1,-1,0)(210=-1,-1,-1,-1,0)(211=-1,-1,-1,-1,0)(220=-1,-1,-1,-1,0)(221=-1,-1,-1,-1,0)(230=-1,-1,-1,-1,0)(231=-1,-1,-1,-1,0)(232=-1,-1,-1,-1,0)(233=-1,-1,-1,-1,0)(150=-1,-1,-1,-1,0)(151=-1,-1,-1,-1,0)
0
@@ -366,7 +366,12 @@
2
1
- direction
+ direction,0x0A
+
+
+ 3
+ 1
+ valeur,0x0A