Commit 38ffa6de authored by Nathan Girard's avatar Nathan Girard
Browse files

function intialisation motors fixed

parent 0495443b
Subproject commit 1cfd4a2bf6001fb18a671a08775f75b5d51baa3b Subproject commit a77a79c82a93154e6f458d65f994cce0f163f52a
...@@ -471,7 +471,7 @@ ...@@ -471,7 +471,7 @@
<GroupNumber>5</GroupNumber> <GroupNumber>5</GroupNumber>
<FileNumber>20</FileNumber> <FileNumber>20</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>1</tvExp> <tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg> <tvExpOptDlg>0</tvExpOptDlg>
<bDave2>0</bDave2> <bDave2>0</bDave2>
<PathWithFileName>..\BSP\Device\motor.c</PathWithFileName> <PathWithFileName>..\BSP\Device\motor.c</PathWithFileName>
...@@ -483,7 +483,7 @@ ...@@ -483,7 +483,7 @@
<GroupNumber>5</GroupNumber> <GroupNumber>5</GroupNumber>
<FileNumber>21</FileNumber> <FileNumber>21</FileNumber>
<FileType>1</FileType> <FileType>1</FileType>
<tvExp>0</tvExp> <tvExp>1</tvExp>
<tvExpOptDlg>0</tvExpOptDlg> <tvExpOptDlg>0</tvExpOptDlg>
<bDave2>0</bDave2> <bDave2>0</bDave2>
<PathWithFileName>..\BSP\Device\list_motor.c</PathWithFileName> <PathWithFileName>..\BSP\Device\list_motor.c</PathWithFileName>
......
...@@ -166,16 +166,12 @@ int main(void) ...@@ -166,16 +166,12 @@ int main(void)
m3508_backleft.target += 500; m3508_backleft.target += 500;
m3508_backright.target += 500; m3508_backright.target += 500;
gm6020.target += 40;
if (m3508_frontleft.target > 2000) if (m3508_frontleft.target > 2000)
{ {
m3508_frontleft.target = 0; m3508_frontleft.target = 0;
m3508_frontright.target = 0; m3508_frontright.target = 0;
m3508_backleft.target = 0; m3508_backleft.target = 0;
m3508_backright.target = 0; m3508_backright.target = 0;
gm6020.target = 0;
} }
// PWM_SetAllDuty(&htim1, 0.1f, 0.1f, 0.1f, 0.1f); // PWM_SetAllDuty(&htim1, 0.1f, 0.1f, 0.1f, 0.1f);
// HAL_Delay(2500); // HAL_Delay(2500);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment