带微控制器 PIC 的 Invensense IMU3000
有人体验过将 Invensense IMU3000 与某些微控制器一起使用吗? 我正在尝试为 PIC 构建 IMU 库,但我受制于依赖关系。任何其他微控制器的其他经验也会很好! 基本上我不知道是否最好采用 Visual Studio 2005 项目并在那里进行更改,添加 PIC 依赖项(我陷入困境..)或在 PIC 环境中编译整个库。
任何提示,即使有其他平台,会有帮助!
谢谢大家!
Has anybody experienced using the Invensense IMU3000 with some microcontroller?
I am trying to build the IMU library for a PIC but I am stuck with the dependencies.. any other experience with others microcontrollers will be nice as well!
Basically I don't get whether it is better to take the Visual Studio 2005 project and make the changes there, adding the PIC dependencies (I get stuck..) or compile the whole library in the PIC environment..
Any hint, even with other platforms, would help!
Thank you all!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
PC 和 PIC 编程非常不同......而且还有很多 pIC 变体,它们彼此之间有很大不同,很难回答这样一个开放式问题。然而,基本上你正在编写数学算法。因此,将这些编写为 ansi c 函数,托管大量 PC 设备(对话框等),一旦它们开始工作,您就可以仅将数学函数移至 PIC - 已经在 PIC 上运行了一个框架,准备好接收算法。但是 - 照顾好记忆。你的电脑上有很多这样的东西,一旦你在 PIC 上工作,你就必须节省内存。祝你好运,享受!
PC and PIC programming are so very different... Also there are so many pIC variants, they are hugely different from each other, it's hard to answer such an open ended question. However, basically you're writing mathematical algorithms. So write these as ansi c functions, hosted with a load of PC things (dialogs etc) and once they're working, you can move just the math functions over to the PIC - having already got a framework running on the PIC, ready to receive the algorithms. BUT - take care with memory. You have bags of it on the PC, you have to be mean with memory once you work on a PIC. Good luck, enjoy!
虽然在 PC 上编写最终将迁移到 PIC 的代码会有所帮助,但您需要确保所有将迁移的代码在编写时都考虑到了可移植性。也就是说,您不能假设在 Visual Studio 下编译和完美运行的代码无需修改即可在任何其他平台上运行。
要在 PIC 中运行,所有代码都必须使用专为 PIC 设计的交叉开发工具进行编译。
也就是说,我经常在 PC 上开发算法和详细处理代码,可以轻松地使用测试套件来验证其操作,然后针对我的目标平台重新编译它。
顺便说一句,Google 告诉我 IMU-3000 是一个 MEMS 陀螺仪。在问题中至少包含其数据表的链接可能会有所帮助。
While it can be helpful to write code on the PC that will eventually move to the PIC, you will need to make sure that all code that will move has been written with portability in mind. That is, you cannot assume that code that compiles and works perfectly under Visual Studio will work without modification on any other platform.
To run in the PIC, all of the code must be compiled with cross development tools that are designed to target the PIC.
That said, I often develop algorithms and detailed processing code in the PC where a test suite can be easily used to verify its operation, and then recompile it for my target platform.
Incidentally, Google tells me that the IMU-3000 is a MEMS Gyro. It would probably be helpful to include at least the link to its data sheet in the question.