[嵌入式] 【分享帖】伊利诺伊大学嵌入式电子控制固件开源

[复制链接]
正式队员alvinsunyixiao
2018-7-3 20:43:27 显示全部楼层

马上注册,玩转Robomaster!

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
伊利诺伊大学嵌入式电子控制固件开源
Illini RoboMaster Embedded Control Firmware is Coming to Public

大家好!我们是来自美国伊利诺伊大学厄巴纳香槟分校的 iRM 战队。

这次开源的是我们团队开发的底层嵌入式控制软件。我们这套固件借鉴了一点 DJI ICRA 2018 官方开源固件的软件结构,把主体控制程序分成了三层:BSP,Library,和 Task。BSP(Board Support Package) 是基于 STM32 HAL 库以及寄存器级别的底层封装层,之后每一层都基于前一层进行抽象以及封装,使得最高层的控制逻辑可以用简单的代码完成复杂的任务。我们设计了可以高度复用并且具有高适应性的软件,为方便日后移植到新型控制板甚至是不同主控芯片上做出了一些努力,这种软件适应性也允许我们将所有不同种类机器人不同的控制逻辑压缩到一套固件当中。

主体软件我们分了两大部分,把可高度复用的三层控制核心源码单独做成一个可被高层调用的API,控制板/芯片/阵脚定义相关的源码分到另一部分。这两部分我们采用了 git submodule 的方法从属关联起来,组成了我们完整的控制源码。我们的官方 GitHub 中 iRM_Embedded_2017 是在2017年的RM主控板适用的固件,iRM_Embedded_2018 则在今年最新的Type A RM主控板上适用。这两套固件用的是同一套核心控制API:iRM_Embedded_Libraries

所有的源码头文件都采用了标准的Doxygen风格进行了文档注释,同时,我们还用英文提供了关于如何编译/使用我们固件的教程。我们希望能通过这样开源的方式为RM社区做出一点小小的贡献,并且带动更多国际学校在这个社区中的活跃度。

这是我们第一年参加DJI RoboMaster大赛,所以经验方面和技术方面都有很多需要像大家学习的地方,希望能有机会多多请教各位大神,和大家多多交流


Greetings everybody! We are team iRM from UIUC - University of Illinois at Urbana-Champaign!

We've just decided to make our embedded control software OPEN SOURCE. Our control related codes are seperated into three layers: BSP, Library, and Task. This code structure is partially referenced from DJI ICRA 2018 Official open source embedded software. BSP (Board Support Package) is the lowest level layer that is developed based on HAL / register level operations. All preceding higher level layers are further abstraction of the lower layers. These structures allow us to achieve a combination of complicated tasks with reletively simple and concise codes. We put in quite a bit effort to make our codes well organized, reusable, and adaptive. This is mostly for easier migration to different control boards or even differnt MCU platforms in later times. The adaptivity of our software also allows us to integrate our control logics for all of our different robots into one repository.

Our overall code structure is divided into two repositories. One of them is a relatively high level control APIs, which is an encapsulation of all these three layers. Another one contains codes related to board / chip specific configurations such as pin definitions and hardware connections, which is mostly automatically generated from the CubeMX software. We relate the two repository using git submodules to solve their dependencies, and the two of them together makes up our embedded control software, which can be flashed on to the control board. Our official GitHub account currently contains 3 repositories: iRM_Embedded_2017 is the software implemented on DJI RoboMaster 2017 Control Board, iRM_Embedded_2018 is the one for DJI RoboMaster 2018 Type A Control Board, and iRM_Embedded_Libraries is the submodule that the previous two repositories depend on.

All header files are Doxygen style documented, and we provided English tutorials for how to compile / flash our codes. We hope to contribute to the RoboMaster Community, and more importantly, help more international universities get to know about this amazing robotics competition.

This is the first time we take part in this competition, so there's still a long way to go for us. We are excited to see all the amazing designs from all the different teams, and it will be our honor to learn a ton from you in the near future!


跳转到指定楼层

[嵌入式] 【分享帖】伊利诺伊大学嵌入式电子控制固件开源

[复制链接]
梯队队员空白88607254
2019-1-16 14:41:54 显示全部楼层
在孤独中孤独着
才懂安静的渴

[嵌入式] 【分享帖】伊利诺伊大学嵌入式电子控制固件开源

[复制链接]
正式队员北春希子
2018-8-27 23:53:45 显示全部楼层
6666666666666666666666666

[嵌入式] 【分享帖】伊利诺伊大学嵌入式电子控制固件开源

[复制链接]
正式队员L先生
2018-11-4 06:56:16 显示全部楼层
非常感谢,继续为R信仰加油

[嵌入式] 【分享帖】伊利诺伊大学嵌入式电子控制固件开源

[复制链接]
英雄GoldenKnight
2018-7-4 05:55:47 显示全部楼层
下载学习一下

[嵌入式] 【分享帖】伊利诺伊大学嵌入式电子控制固件开源

[复制链接]
英雄Dan丶Jia_Yao
2018-7-4 21:31:47 显示全部楼层
可以可以,下载一下看看

[嵌入式] 【分享帖】伊利诺伊大学嵌入式电子控制固件开源

[复制链接]
哨兵STM32是真的难
2018-7-4 22:54:14 显示全部楼层
可以可以,学习一下

[嵌入式] 【分享帖】伊利诺伊大学嵌入式电子控制固件开源

[复制链接]
工程无血九痕
2018-7-4 23:54:04 显示全部楼层
66666666666

[嵌入式] 【分享帖】伊利诺伊大学嵌入式电子控制固件开源

[复制链接]
顾问NickelLiang
2018-7-9 23:39:40 显示全部楼层
6666666666

[嵌入式] 【分享帖】伊利诺伊大学嵌入式电子控制固件开源

[复制链接]
正式队员格里普斯Ⅱ
2018-7-12 21:27:15 显示全部楼层
学习一下学习一下

[嵌入式] 【分享帖】伊利诺伊大学嵌入式电子控制固件开源

[复制链接]
哨兵STM32是真的难
2018-7-18 17:26:38 显示全部楼层
666666666666

[嵌入式] 【分享帖】伊利诺伊大学嵌入式电子控制固件开源

[复制链接]
步兵陀螺
2018-7-18 17:55:26 显示全部楼层
6666666666666666

[嵌入式] 【分享帖】伊利诺伊大学嵌入式电子控制固件开源

[复制链接]
顾问翘楚
2018-7-20 18:32:20 显示全部楼层
:o:o:o:o
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

触屏版 | 电脑版

Copyright © 2024 RoboMasters 版权所有 备案号 粤ICP备2022092332号

快速回复 返回顶部 返回列表