API sequence

By william_disanto , 12 July 2011

Hi,

I am trying to implement a system with MPU-6050 (EVB) integrated.
I using a PIC18f microprocessor as an I2C master.

I re-wrote the basic drivers functions (MLSLSerialWriteSingle, MLSLSerialRead, etc...) and able to pass most of "driverselftest.c" tests.

I would like to get the MPL working so that i would be able read sequentially 9-axis data from the sensor, and use it within my code on the microprocessor. (Basically, for a sensor based mouse)

What would be a high level API functions sequence to enable such a program?

Thanks,
Ohad

rrsgdtac

14 years 8 months ago

The user guide (currently available on website) gives an overview of how to port Embedded MotionApps to your own target environment

phpbb Post ID
17454

william_disanto

14 years 8 months ago

Hi,

Obviously i read the user-guide (cover to cover), and also much of the sample code published. But still i find it hard to extract a simple high level sequence that will allow such functionality.

I would really appreciate if you can reply with something like (even without error protections etc...)

High level sequence:

SetupPlatform()
MLSerialOpen()
MLDmpOpen()
SetupDmpOpen()
MLDmpStart()
Loop
...

Thanks,

phpbb Post ID
17457

rrsgdtac

14 years 8 months ago

The only functions you would need to call to setup Embedded MotionApps are found in umpl-states.h. The function calls in that file will setup the library in the supported manner. We will not support questions having to do with functions called from umpl-states.c. That file's contents are "under the hood."

phpbb Post ID
17460
phpbb Topic ID
13356