Implementing Dolphin Code in Arduino

I want to make an arduino nano and BNO055 act like a WiiMotion Plus, and when i asked homebrew expert Billiard for help, he suggest i use Dolphin's MotionPlus.cpp and MotionPlus.h files in my script.

I looked through the dependency tree and found these two files need around 44 other headers to be completely isolate, despite Billiard suggesting id only need these. I think he meant this on the grounds that i was already verse in converting c++ code like this into an uploadable file, and that i could interpolate where things should go.

I am not however, I started this project writing my own .ino file from homebrew's wiki, so despite me knowing c++, it is not well enough to do something such as this. And while yes i know arduino can run c++ code, i doubt its anything like this; as mine did not work.

Does anyone know what i should do to get started? These files seem like they'd be a huge help, but i still cant grasp them fully and therefore cant really use them.

Are you sure he's not thinking those files go in the dolphin build? Maybe he is asking you to look at what data the emulator captures and reverse engineer your solution with a compatible interface. If I was going to make a WiiMotion Plus emulator for a Wii Emulator, that's where I'd start.

While messaging him in freenode, he said:

...basically everything in MotionPlus.cpp/h is going to be needed except like one function (ReversePassthroughModifications) It's like 1000loc. just copy paste it

Also, to be more specific,

If I was going to make a WiiMotion Plus emulator for a Wii Emulator, that's where I'd start.

Im not making this for a Wii Emulator, I want to plug this into an actual wii remote and play it on a wii, not an emulation. This way If i had a better IMU that could do sensor fusion, autocalibrate, and was 9DOF, id get better gyro values for wii games.

probablyhuman:
This way If i had a better IMU that could do sensor fusion, autocalibrate, and was 9DOF, id get better gyro values for wii games.

This is a nice idea, but not necessarily true. It all depends on the WII interface. The source code you have linked is for implementing WiiMotion Plus in ones build of the dolphin emulator, for either a PC, Linux, Mac or Android. It's not going to work without a lot of refactoring for an Arduino Nano. Even then, I think you are looking for the companion to this code, being code that interfaces with this code, not this code... cheers.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.