Commit 0263fa0d authored by Nathan Girard's avatar Nathan Girard
Browse files

Add rotation ICRA

parent 4aa5235f
......@@ -111,7 +111,7 @@
<RegID>0</RegID>
<MDITabState>
<Len>730</Len>
<Data>0100000004000000010000000100000001000000010000000000000002000000000000000100000001000000000000002800000028000000010000000500000001000000010000004A443A5C446F63756D656E74735C53545C506F6C79737461725C4749545C636F6E74726F6C652D65742D73797374656D655C5374616E646172645F726F626F745C5372635C6D61696E2E6300000000066D61696E2E6300000000C5D4F200FFFFFFFF55443A5C446F63756D656E74735C53545C506F6C79737461725C4749545C636F6E74726F6C652D65742D73797374656D655C5374616E646172645F726F626F745C4253505C4472697665725C6273705F756172742E63000000000A6273705F756172742E6300000000FFDC7800FFFFFFFF55443A5C446F63756D656E74735C53545C506F6C79737461725C4749545C636F6E74726F6C652D65742D73797374656D655C5374616E646172645F726F626F745C4253505C4472697665725C6273705F756172742E68000000000A6273705F756172742E6800000000BECEA100FFFFFFFF57443A5C446F63756D656E74735C53545C506F6C79737461725C4749545C636F6E74726F6C652D65742D73797374656D655C5374616E646172645F726F626F745C4253505C4465766963655C6C6973745F6D6F746F722E63000000000C6C6973745F6D6F746F722E6300000000F0A0A100FFFFFFFF57443A5C446F63756D656E74735C53545C506F6C79737461725C4749545C636F6E74726F6C652D65742D73797374656D655C5374616E646172645F726F626F745C4253505C4465766963655C6C6973745F6D6F746F722E68000000000C6C6973745F6D6F746F722E6800000000BCA8E100FFFFFFFF0100000010000000C5D4F200FFDC7800BECEA100F0A0A100BCA8E1009CC1B600F7B88600D9ADC200A5C2D700B3A6BE00EAD6A300F6FA7D00B5E99D005FC3CF00C1838300CACAD5000100000000000000020000009A000000660000000006000094020000</Data>
<Data>0100000004000000010000000100000001000000010000000000000002000000000000000100000001000000000000002800000028000000010000000500000000000000010000004A443A5C446F63756D656E74735C53545C506F6C79737461725C4749545C636F6E74726F6C652D65742D73797374656D655C5374616E646172645F726F626F745C5372635C6D61696E2E6300000000066D61696E2E6300000000C5D4F200FFFFFFFF55443A5C446F63756D656E74735C53545C506F6C79737461725C4749545C636F6E74726F6C652D65742D73797374656D655C5374616E646172645F726F626F745C4253505C4472697665725C6273705F756172742E63000000000A6273705F756172742E6300000000FFDC7800FFFFFFFF55443A5C446F63756D656E74735C53545C506F6C79737461725C4749545C636F6E74726F6C652D65742D73797374656D655C5374616E646172645F726F626F745C4253505C4472697665725C6273705F756172742E68000000000A6273705F756172742E6800000000BECEA100FFFFFFFF57443A5C446F63756D656E74735C53545C506F6C79737461725C4749545C636F6E74726F6C652D65742D73797374656D655C5374616E646172645F726F626F745C4253505C4465766963655C6C6973745F6D6F746F722E63000000000C6C6973745F6D6F746F722E6300000000F0A0A100FFFFFFFF57443A5C446F63756D656E74735C53545C506F6C79737461725C4749545C636F6E74726F6C652D65742D73797374656D655C5374616E646172645F726F626F745C4253505C4465766963655C6C6973745F6D6F746F722E68000000000C6C6973745F6D6F746F722E6800000000BCA8E100FFFFFFFF0100000010000000C5D4F200FFDC7800BECEA100F0A0A100BCA8E1009CC1B600F7B88600D9ADC200A5C2D700B3A6BE00EAD6A300F6FA7D00B5E99D005FC3CF00C1838300CACAD5000100000000000000020000009A000000660000000006000094020000</Data>
</MDITabState>
</MDIClientArea>
<ViewEx>
......@@ -3603,12 +3603,12 @@
<ActiveMDIGroup>0</ActiveMDIGroup>
<MDIGroup>
<Size>100</Size>
<ActiveTab>1</ActiveTab>
<ActiveTab>0</ActiveTab>
<Doc>
<Name>../Src/main.c</Name>
<ColumnNumber>26</ColumnNumber>
<TopLine>195</TopLine>
<CurrentLine>209</CurrentLine>
<ColumnNumber>62</ColumnNumber>
<TopLine>177</TopLine>
<CurrentLine>191</CurrentLine>
<Folding>1</Folding>
<ContractedFolders></ContractedFolders>
<PaneID>0</PaneID>
......
......@@ -186,10 +186,10 @@ int main(void)
// PWM_SetAllDuty(&htim1, 0, 0, 0, 0);
}
m3508_frontleft.target = 4*rc_ctrl.rc.ch[0] + 4*rc_ctrl.rc.ch[1];
m3508_frontright.target = -(4*rc_ctrl.rc.ch[0] - 4*rc_ctrl.rc.ch[1]);
m3508_backleft.target = -(4*rc_ctrl.rc.ch[0] + 4*rc_ctrl.rc.ch[1]);
m3508_backright.target = 4*rc_ctrl.rc.ch[0] - 4*rc_ctrl.rc.ch[1];
m3508_frontleft.target = 4*rc_ctrl.rc.ch[0] + 4*rc_ctrl.rc.ch[1] - 4*rc_ctrl.rc.ch[4];
m3508_frontright.target = -(4*rc_ctrl.rc.ch[0] - 4*rc_ctrl.rc.ch[1] + 4*rc_ctrl.rc.ch[4]);
m3508_backleft.target = -(4*rc_ctrl.rc.ch[0] + 4*rc_ctrl.rc.ch[1] + 4*rc_ctrl.rc.ch[4]);
m3508_backright.target = 4*rc_ctrl.rc.ch[0] - 4*rc_ctrl.rc.ch[1] - 4*rc_ctrl.rc.ch[4];
get_motor_data(&m3508_frontleft);
get_motor_data(&m3508_frontright);
......
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