Skip to content

Commit 3c44fe1

Browse files
committed
WTR抛球机器人状态机版本v2.0.1
1 parent f1b9b89 commit 3c44fe1

File tree

231 files changed

+189128
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

231 files changed

+189128
-0
lines changed

.clang-format

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
BasedOnStyle: Microsoft
3+
Language: Cpp
4+
5+
###################################
6+
# indent conf
7+
###################################
8+
9+
UseTab: Never
10+
IndentWidth: 4
11+
TabWidth: 4
12+
ColumnLimit: 0
13+
AccessModifierOffset: -4
14+
NamespaceIndentation: All
15+
FixNamespaceComments: false
16+
BreakBeforeBraces: Linux
17+
18+
###################################
19+
# other styles
20+
###################################
21+
22+
#
23+
# for more conf, you can ref: https://clang.llvm.org/docs/ClangFormatStyleOptions.html
24+
#
25+
26+
AllowShortIfStatementsOnASingleLine: true
27+
28+
AllowShortLoopsOnASingleLine: true
29+
30+
AllowShortBlocksOnASingleLine: true
31+
32+
IndentCaseLabels: true
33+
34+
SortIncludes: false
35+
36+
AlignConsecutiveMacros: AcrossEmptyLines
37+
38+
AlignConsecutiveAssignments: Consecutive

.eide/debug.st.option.bytes.ini

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
##############################################
2+
#
3+
# STM32 Option Bytes
4+
#
5+
# Usage: Uncomment to enable options
6+
#
7+
##############################################
8+
9+
# RDP = <Level>
10+
# BOR_LEV = <Level>
11+
12+
# WWDG_SW = <Value>
13+
# IWDG_SW = <Value>
14+
# IWDG_STOP = <Value>
15+
# IWDG_STDBY = <Value>
16+
# IWDG_ULP = <Value>
17+
18+
# FZ_IWDG_STOP = <Value>
19+
# FZ_IWDG_STDBY = <Value>
20+
21+
# nRST_STOP = <Value>
22+
# nRST_STDBY = <Value>
23+
24+
# nBOOT_SEL = <Value>
25+
# nRST_SHDW = <Value>
26+
# PCROP_RDP = <Value>
27+
28+
# nBFB2 = <Value>
29+
# BFB2 = <Value>
30+
31+
# nBoot1 = <Value>
32+
# Boot1 = <Value>
33+
# nBoot0 = <Value>
34+
# nBoot0_SW_Cfg = <Value>
35+
36+
# VDDA = <Value>
37+
# SDADC12_VDD = <Value>
38+
39+
# DB1M = <Value>
40+
# DUALBANK = <Value>
41+
# nDBANK = <Value>
42+
43+
# BOOT0_nSW_Config = <Value>
44+
# Data0 = <Value>
45+
# Data1 = <Value>
46+
47+
# nSRAM_Parity = <Value>
48+
# SRAM2_RST = <Value>
49+
# SRAM2_PE = <Value>
50+
51+
# DDS = <Value>
52+
# FSD = <Value>
53+
# SFSA = <Value>
54+
# C2OPT = <Value>
55+
# NBRSD = <Value>
56+
# SNBRSA = <Value>
57+
# SBRSA = <Value>
58+
# BRSD = <Value>
59+
# SBRV = <Value>
60+
61+
# DMEPB = <Value>
62+
# DMESB = <Value>
63+
64+
# Security = <Value>
65+
# CM7_BOOT_ADD0 = <Value>
66+
# CM7_BOOT_ADD1 = <Value>
67+
68+
# IWDG1 = <Value>
69+
# IWDG2 = <Value>
70+
71+
# nRST_STDBY_D2 = <Value>
72+
# BOOT_CM4 = <Value>
73+
74+
# nRST_STDBY_D1 = <Value>
75+
# BOOT_CM7 = <Value>
76+
77+
# CM7_BOOT_ADD0 = <Value>
78+
# CM7_BOOT_ADD1 = <Value>
79+
80+
# DMEPA = <Value>
81+
# DMESA = <Value>
82+
83+
# SECA_strt = <Value>
84+
# SECA_end = <Value>
85+
# SECB_strt = <Value>
86+
# SECB_end = <Value>
87+
88+
# DTCM_RAM = <Value>
89+
# SPRMOD = <Value>
90+
# WPRMOD = <Value>
91+
92+
# PCROPA_STRT = <Value>
93+
# PCROPA_END = <Value>
94+
# PCROPB_STRT = <Value>
95+
# PCROPB_END = <Value>
96+
97+
# WRP = <Value>
98+
# WRP2 = <Value>
99+
# WRP3 = <Value>
100+
# WRP4 = <Value>
101+
# WRP1A_STRT = <Value>
102+
# WRP1A_END = <Value>
103+
# WRP1B_STRT = <Value>
104+
# WRP1B_END = <Value>
105+
# WRP2A_STRT = <Value>
106+
# WRP2A_END = <Value>
107+
# WRP2B_STRT = <Value>
108+
# WRP2B_END = <Value>
109+
110+
# IPCCDBA = <Value>

.eide/eide.json

Lines changed: 139 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
1+
{
2+
"name": "omniwheel_chassis",
3+
"type": "ARM",
4+
"dependenceList": [],
5+
"srcDirs": [
6+
"Core",
7+
"Drivers",
8+
"Middlewares",
9+
"usercode",
10+
"UC",
11+
"Unitree_SDK"
12+
],
13+
"virtualFolder": {
14+
"name": "<virtual_root>",
15+
"files": [
16+
{
17+
"path": "startup_stm32f427xx.s"
18+
}
19+
],
20+
"folders": []
21+
},
22+
"outDir": "build",
23+
"deviceName": "STM32F427IIHx",
24+
"packDir": ".pack/Keil/STM32F4xx_DFP.2.13.0 (1)",
25+
"miscInfo": {
26+
"uid": "42decbc528c64916e666594817317d53"
27+
},
28+
"targets": {
29+
"Debug": {
30+
"excludeList": [],
31+
"toolchain": "GCC",
32+
"compileConfig": {
33+
"cpuType": "Cortex-M4",
34+
"floatingPointHardware": "single",
35+
"scatterFilePath": "STM32F427IIHx_FLASH.ld",
36+
"useCustomScatterFile": true,
37+
"storageLayout": {
38+
"RAM": [],
39+
"ROM": []
40+
},
41+
"options": "null"
42+
},
43+
"uploader": "JLink",
44+
"uploadConfig": {
45+
"bin": "",
46+
"baseAddr": "",
47+
"cpuInfo": {
48+
"vendor": "ST",
49+
"cpuName": "STM32F427II"
50+
},
51+
"proType": 1,
52+
"speed": 8000,
53+
"otherCmds": ""
54+
},
55+
"uploadConfigMap": {
56+
"JLink": {
57+
"bin": "",
58+
"baseAddr": "",
59+
"cpuInfo": {
60+
"vendor": "null",
61+
"cpuName": "null"
62+
},
63+
"proType": 1,
64+
"speed": 8000,
65+
"otherCmds": ""
66+
},
67+
"STLink": {
68+
"bin": "",
69+
"proType": "SWD",
70+
"resetMode": "default",
71+
"runAfterProgram": true,
72+
"speed": 4000,
73+
"address": "0x08000000",
74+
"elFile": "None",
75+
"optionBytes": ".eide/debug.st.option.bytes.ini",
76+
"otherCmds": ""
77+
},
78+
"OpenOCD": {
79+
"bin": "${ExecutableName}.hex",
80+
"target": "stm32f4x",
81+
"interface": "jlink",
82+
"baseAddr": "0x08000000"
83+
}
84+
},
85+
"custom_dep": {
86+
"name": "default",
87+
"incList": [
88+
"usercode/hold",
89+
"Core/Inc",
90+
"Drivers/STM32F4xx_HAL_Driver/Inc",
91+
"Drivers/STM32F4xx_HAL_Driver/Inc/Legacy",
92+
"Middlewares/Third_Party/FreeRTOS/Source/include",
93+
"Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2",
94+
"Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F",
95+
"Drivers/CMSIS/Device/ST/STM32F4xx/Include",
96+
"Drivers/CMSIS/Include",
97+
"usercode/task",
98+
"usercode/lib/dji_motor",
99+
"usercode/lib/Remotectl/Mavlink/message",
100+
"usercode/lib/Remotectl/Mavlink",
101+
"usercode/lib/Remotectl/RemoteCtl"
102+
],
103+
"libList": [],
104+
"defineList": [
105+
"USE_HAL_DRIVER",
106+
"STM32F427xx"
107+
]
108+
},
109+
"builderOptions": {
110+
"GCC": {
111+
"version": 5,
112+
"beforeBuildTasks": [],
113+
"afterBuildTasks": [],
114+
"global": {
115+
"$float-abi-type": "softfp",
116+
"output-debug-info": "enable",
117+
"misc-control": "--specs=nosys.specs --specs=nano.specs"
118+
},
119+
"c/cpp-compiler": {
120+
"language-c": "c11",
121+
"language-cpp": "c++11",
122+
"optimization": "level-debug",
123+
"warnings": "all-warnings",
124+
"one-elf-section-per-function": true,
125+
"one-elf-section-per-data": true
126+
},
127+
"asm-compiler": {},
128+
"linker": {
129+
"output-format": "elf",
130+
"remove-unused-input-sections": true,
131+
"LIB_FLAGS": "-lm",
132+
"$toolName": "auto"
133+
}
134+
}
135+
}
136+
}
137+
},
138+
"version": "3.5"
139+
}

.eide/env.ini

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
###########################################################
2+
# project environment variables
3+
###########################################################
4+
5+
# append command prefix for toolchain
6+
#COMPILER_CMD_PREFIX=
7+
8+
# mcu ram size (used to print memory usage)
9+
#MCU_RAM_SIZE=0x00
10+
11+
# mcu rom size (used to print memory usage)
12+
#MCU_ROM_SIZE=0x00
13+
14+
# put your global variables ...
15+
#GLOBAL_VAR=
16+
17+
[debug]
18+
# put your variables for 'debug' target ...
19+
#VAR=

.eide/files.options.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
##########################################################################################
2+
# Append Compiler Options For Source Files
3+
##########################################################################################
4+
5+
# syntax:
6+
# <your pattern>: <compiler options>
7+
# For get pattern syntax, please refer to: https://www.npmjs.com/package/micromatch
8+
#
9+
# examples:
10+
# 'main.cpp': --cpp11 -Og ...
11+
# 'src/*.c': -gnu -O2 ...
12+
# 'src/lib/**/*.cpp': --cpp11 -Os ...
13+
# '!Application/*.c': -O0
14+
# '**/*.c': -O2 -gnu ...
15+
16+
version: "2.0"
17+
options:
18+
Debug:
19+
files: {}
20+
virtualPathFiles: {}

.gitignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# dot files
2+
/.vscode/launch.json
3+
/.settings
4+
/.eide/log
5+
/.eide.usr.ctx.json
6+
7+
# project out
8+
/build
9+
/bin
10+
/obj
11+
/out
12+
13+
# eide template
14+
*.ept
15+
*.eide-template

0 commit comments

Comments
 (0)