开启底盘跟随,修改Peremeter.h中Yaw轴回正时编码器值以保证云台正确回中,由于抖动和严重发热,暂时关闭云台pitch轴控制
This commit is contained in:
@@ -58,7 +58,7 @@ void Mecanum_Init(void)
|
||||
//Raw Code//
|
||||
//PID_PositionSetParameter(&Mecanum_TrackPID,0.007,0,0.8);
|
||||
//Testing Code//
|
||||
PID_PositionSetParameter(&Mecanum_TrackPID,0.00,0,0);
|
||||
PID_PositionSetParameter(&Mecanum_TrackPID,0.01,0,01);//随便写的PID值,勉强可以用
|
||||
|
||||
PID_PositionSetEkRange(&Mecanum_TrackPID,-1,1);
|
||||
PID_PositionSetOUTRange(&Mecanum_TrackPID,-4,4);
|
||||
@@ -172,9 +172,9 @@ void Mecanum_PowerMoveControl(void)
|
||||
}
|
||||
|
||||
//Raw Code//
|
||||
//int16_t Raw_Theta=Yaw_GM6020PositionValue-GM6020_MotorStatus[0].Angle;//获取底盘云台相对角度原始数据
|
||||
int16_t Raw_Theta=Yaw_GM6020PositionValue-GM6020_MotorStatus[0].Angle;//获取底盘云台相对角度原始数据
|
||||
//Testing Code//
|
||||
int16_t Raw_Theta=0;//关闭云台角度,仅用于调试底盘
|
||||
//int16_t Raw_Theta=0;//关闭云台角度,仅用于调试底盘
|
||||
|
||||
if(Raw_Theta<0)Raw_Theta+=8192;
|
||||
//Mecanum_YawTheta=Raw_Theta/8192.0f*2.0f*3.141592653589793238462643383279f;
|
||||
|
||||
Binary file not shown.
@@ -29,26 +29,26 @@ Project File Date: 11/02/2025
|
||||
Rebuild target 'Target 1'
|
||||
assembling startup_stm32f40_41xxx.s...
|
||||
compiling system_stm32f4xx.c...
|
||||
compiling stm32f4xx_cryp.c...
|
||||
compiling stm32f4xx_adc.c...
|
||||
compiling stm32f4xx_dcmi.c...
|
||||
compiling stm32f4xx_cryp_des.c...
|
||||
compiling stm32f4xx_dfsdm.c...
|
||||
compiling stm32f4xx_cryp_tdes.c...
|
||||
compiling stm32f4xx_crc.c...
|
||||
compiling stm32f4xx_cec.c...
|
||||
compiling stm32f4xx_dac.c...
|
||||
compiling stm32f4xx_dbgmcu.c...
|
||||
compiling stm32f4xx_dsi.c...
|
||||
compiling stm32f4xx_dac.c...
|
||||
compiling stm32f4xx_fmpi2c.c...
|
||||
compiling stm32f4xx_dma2d.c...
|
||||
compiling stm32f4xx_cec.c...
|
||||
compiling stm32f4xx_can.c...
|
||||
compiling stm32f4xx_dfsdm.c...
|
||||
compiling stm32f4xx_cryp.c...
|
||||
compiling stm32f4xx_crc.c...
|
||||
compiling stm32f4xx_flash_ramfunc.c...
|
||||
compiling stm32f4xx_dsi.c...
|
||||
compiling stm32f4xx_exti.c...
|
||||
compiling stm32f4xx_dcmi.c...
|
||||
compiling misc.c...
|
||||
compiling stm32f4xx_gpio.c...
|
||||
compiling stm32f4xx_can.c...
|
||||
compiling stm32f4xx_flash_ramfunc.c...
|
||||
compiling stm32f4xx_exti.c...
|
||||
compiling stm32f4xx_dma.c...
|
||||
compiling stm32f4xx_dma2d.c...
|
||||
compiling stm32f4xx_cryp_tdes.c...
|
||||
compiling stm32f4xx_cryp_des.c...
|
||||
compiling stm32f4xx_fsmc.c...
|
||||
compiling stm32f4xx_dma.c...
|
||||
compiling stm32f4xx_flash.c...
|
||||
compiling stm32f4xx_cryp_aes.c...
|
||||
compiling stm32f4xx_hash.c...
|
||||
@@ -57,45 +57,45 @@ compiling stm32f4xx_hash_sha1.c...
|
||||
compiling stm32f4xx_lptim.c...
|
||||
compiling stm32f4xx_iwdg.c...
|
||||
compiling stm32f4xx_i2c.c...
|
||||
compiling stm32f4xx_pwr.c...
|
||||
compiling stm32f4xx_ltdc.c...
|
||||
compiling stm32f4xx_qspi.c...
|
||||
compiling stm32f4xx_pwr.c...
|
||||
compiling stm32f4xx_rng.c...
|
||||
compiling TIM.c...
|
||||
compiling stm32f4xx_sdio.c...
|
||||
compiling stm32f4xx_ltdc.c...
|
||||
compiling stm32f4xx_spdifrx.c...
|
||||
compiling stm32f4xx_sai.c...
|
||||
compiling stm32f4xx_rcc.c...
|
||||
compiling Delay.c...
|
||||
compiling stm32f4xx_wwdg.c...
|
||||
compiling stm32f4xx_syscfg.c...
|
||||
compiling stm32f4xx_sdio.c...
|
||||
compiling stm32f4xx_spi.c...
|
||||
compiling stm32f4xx_usart.c...
|
||||
compiling stm32f4xx_syscfg.c...
|
||||
compiling stm32f4xx_rtc.c...
|
||||
compiling stm32f4xx_wwdg.c...
|
||||
compiling stm32f4xx_usart.c...
|
||||
compiling TIM.c...
|
||||
compiling Delay.c...
|
||||
compiling CAN.c...
|
||||
compiling UART.c...
|
||||
compiling stm32f4xx_tim.c...
|
||||
compiling CAN.c...
|
||||
compiling LED.c...
|
||||
compiling Buzzer.c...
|
||||
compiling Remote.c...
|
||||
compiling LinkCheck.c...
|
||||
compiling M3508.c...
|
||||
compiling GM6020.c...
|
||||
compiling Warming.c...
|
||||
compiling LinkCheck.c...
|
||||
compiling CToC.c...
|
||||
compiling CloseLoopControl.c...
|
||||
compiling Warming.c...
|
||||
compiling PID.c...
|
||||
compiling UI.c...
|
||||
compiling CloseLoopControl.c...
|
||||
compiling RefereeSystem_CRCTable.c...
|
||||
compiling Ultra_CAP.c...
|
||||
compiling RefereeSystem.c...
|
||||
compiling stm32f4xx_it.c...
|
||||
compiling UI_Base.c...
|
||||
compiling Ultra_CAP.c...
|
||||
compiling UI.c...
|
||||
compiling Mecanum.c...
|
||||
compiling main.c...
|
||||
compiling UI_Base.c...
|
||||
compiling UI_Library.c...
|
||||
compiling stm32f4xx_it.c...
|
||||
compiling main.c...
|
||||
linking...
|
||||
Program Size: Code=18624 RO-data=1224 RW-data=408 ZI-data=2496
|
||||
Program Size: Code=18636 RO-data=1224 RW-data=408 ZI-data=2496
|
||||
".\Objects\Project.axf" - 0 Error(s), 0 Warning(s).
|
||||
|
||||
<h2>Software Packages used:</h2>
|
||||
@@ -108,7 +108,7 @@ Package Vendor: Keil
|
||||
<h2>Collection of Component include folders:</h2>
|
||||
|
||||
<h2>Collection of Component Files used:</h2>
|
||||
Build Time Elapsed: 00:00:04
|
||||
Build Time Elapsed: 00:00:05
|
||||
</pre>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<title>Static Call Graph - [.\Objects\Project.axf]</title></head>
|
||||
<body><HR>
|
||||
<H1>Static Call Graph for image .\Objects\Project.axf</H1><HR>
|
||||
<BR><P>#<CALLGRAPH># ARM Linker, 5060960: Last Updated: Sun Nov 02 21:32:48 2025
|
||||
<BR><P>#<CALLGRAPH># ARM Linker, 5060960: Last Updated: Mon Nov 03 12:34:21 2025
|
||||
<BR><P>
|
||||
<H3>Maximum Stack Usage = 232 bytes + Unknown(Cycles, Untraceable Function Pointers)</H3><H3>
|
||||
Call chain for Maximum Stack Depth:</H3>
|
||||
@@ -934,7 +934,7 @@ Global Symbols
|
||||
<BR>[Called By]<UL><LI><a href="#[96]">>></a> CloseLoopControl_Init
|
||||
</UL>
|
||||
|
||||
<P><STRONG><a name="[b0]"></a>Mecanum_PowerMoveControl</STRONG> (Thumb, 1994 bytes, Stack size 80 bytes, mecanum.o(i.Mecanum_PowerMoveControl))
|
||||
<P><STRONG><a name="[b0]"></a>Mecanum_PowerMoveControl</STRONG> (Thumb, 2004 bytes, Stack size 80 bytes, mecanum.o(i.Mecanum_PowerMoveControl))
|
||||
<BR><BR>[Stack]<UL><LI>Max Depth = 224<LI>Call Chain = Mecanum_PowerMoveControl ⇒ Mecanum_ControlSpeed ⇒ __aeabi_dadd ⇒ _double_epilogue ⇒ _double_round
|
||||
</UL>
|
||||
<BR>[Calls]<UL><LI><a href="#[b4]">>></a> Ultra_CAP_SetPower
|
||||
|
||||
@@ -2132,7 +2132,7 @@ I (.\Library\stm32f4xx_dcmi.h)(0x64D03164)
|
||||
I (C:\Users\LSMushui\AppData\Local\Keil_v5\ARM\ARMCC\include\stdint.h)(0x5E8E3CC2)
|
||||
I (.\Start\core_cmInstr.h)(0x64D03162)
|
||||
I (.\Start\core_cmFunc.h)(0x64D03162)
|
||||
I (.\Start\core_cmSimd.h)(0x64D03162)
|
||||
I (.\Start\core_cmSimd.h)(0x64D03162)
|
||||
I (.\Start\system_stm32f4xx.h)(0x64D03132)
|
||||
I (.\User\stm32f4xx_conf.h)(0x64D03180)
|
||||
I (.\Library\stm32f4xx_adc.h)(0x64D03164)
|
||||
@@ -2172,7 +2172,7 @@ I (.\Motor\M3508.h)(0x669D0F64)
|
||||
-D__UVISION_VERSION="543" -DSTM32F407xx -DUSE_STDPERIPH_DRIVER -DSTM32F40_41xxx
|
||||
|
||||
-o .\objects\m3508.o --omf_browse .\objects\m3508.crf --depend .\objects\m3508.d)
|
||||
I (.\Start\stm32f4xx.h)(0x64F48C00)
|
||||
I (.\Start\stm32f4xx.h)(0x64F48C00)
|
||||
I (.\Start\core_cm4.h)(0x64D03162)
|
||||
I (C:\Users\LSMushui\AppData\Local\Keil_v5\ARM\ARMCC\include\stdint.h)(0x5E8E3CC2)
|
||||
I (.\Start\core_cmInstr.h)(0x64D03162)
|
||||
@@ -2458,14 +2458,14 @@ I (.\Function\LinkCheck.h)(0x65F5DCF4)
|
||||
I (.\Library\stm32f4xx_dma.h)(0x64D03164)
|
||||
I (.\Library\stm32f4xx_exti.h)(0x64D03164)
|
||||
I (.\Library\stm32f4xx_flash.h)(0x64D03164)
|
||||
I (.\Library\stm32f4xx_gpio.h)(0x64D03164)
|
||||
I (.\Library\stm32f4xx_gpio.h)(0x64D03164)
|
||||
I (.\Library\stm32f4xx_i2c.h)(0x64D03164)
|
||||
I (.\Library\stm32f4xx_iwdg.h)(0x64D03164)
|
||||
I (.\Library\stm32f4xx_pwr.h)(0x64D03164)
|
||||
I (.\Library\stm32f4xx_rcc.h)(0x64D03164)
|
||||
I (.\Library\stm32f4xx_rtc.h)(0x64D03164)
|
||||
I (.\Library\stm32f4xx_sdio.h)(0x64D03164)
|
||||
I (.\Library\stm32f4xx_spi.h)(0x64D03164)
|
||||
I (.\Library\stm32f4xx_spi.h)(0x64D03164)
|
||||
I (.\Library\stm32f4xx_syscfg.h)(0x64D03164)
|
||||
I (.\Library\stm32f4xx_tim.h)(0x64D03164)
|
||||
I (.\Library\stm32f4xx_usart.h)(0x64D03164)
|
||||
|
||||
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
@@ -1767,7 +1767,7 @@
|
||||
|
||||
<Group>
|
||||
<GroupName>Control</GroupName>
|
||||
<tvExp>1</tvExp>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<cbSel>0</cbSel>
|
||||
<RteFlg>0</RteFlg>
|
||||
@@ -1799,7 +1799,7 @@
|
||||
|
||||
<Group>
|
||||
<GroupName>CarBody</GroupName>
|
||||
<tvExp>1</tvExp>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<cbSel>0</cbSel>
|
||||
<RteFlg>0</RteFlg>
|
||||
@@ -1975,7 +1975,7 @@
|
||||
|
||||
<Group>
|
||||
<GroupName>User</GroupName>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExp>1</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<cbSel>0</cbSel>
|
||||
<RteFlg>0</RteFlg>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#define __PARAMETER_H
|
||||
|
||||
/*=============================================结构参数=============================================*/
|
||||
#define Yaw_GM6020PositionValue 4050//Yaw轴编码器值
|
||||
#define Yaw_GM6020PositionValue 6200//Yaw轴回正时编码器值
|
||||
|
||||
/*=============================================麦轮参数=============================================*/
|
||||
#define Mecanum_WheelRadius 7.0f//麦轮半径(单位cm)
|
||||
|
||||
Reference in New Issue
Block a user