Jon Trulson d4b536b593 bno055: C port; C++ wraps C
The API has been changed in some cases - see the apichanges.md
document.

In addition, this driver uses a new upm_vectortypes.i SWIG interface
file to provide a mechanism for methods that return a vector of floats
and ints instead of a pointer to an array.

This works much nicer than C array pointers, and results in Python/JS/Java
code that looks much more "natural" to the language in use.

The Python, JS, and Java examples have been changed to use these
methods.  Support for the "old" C-style pointer methods are still
provided for backward compatibility with existing code.

As an example - to retrieve the x, y, and z data for Euler Angles from
the bno055, the original python code would look something like:

       ...
       x = sensorObj.new_floatp()
       y = sensorObj.new_floatp()
       z = sensorObj.new_floatp()
       ...
       sensor.getEulerAngles(x, y, z)
       ...
       print("Euler: Heading:", sensorObj.floatp_value(x), end=' ')
       print(" Roll:", sensorObj.floatp_value(y), end=' ')
       ...

Now the equivalent code is simply:

       floatData = sensor.getEulerAngles()
       print("Euler: Heading:", floatData[0], ...
       print(" Roll:", floatData[1], end=' ')
       ...

Additionally, interrupt handling for Java is now implemented
completely in the C++ header file now rather than the .cxx file, so no
special SWIG processing is required anymore. See Issue #518 .

Signed-off-by: Jon Trulson <jtrulson@ics.com>
2017-03-07 13:16:24 -07:00
..
2016-04-15 09:59:29 -07:00
2016-04-15 09:59:29 -07:00
2016-04-15 09:59:29 -07:00
2016-09-14 14:09:13 -07:00
2016-09-14 14:08:58 -07:00
2016-04-15 09:59:29 -07:00
2016-09-14 14:08:58 -07:00
2016-09-14 14:07:50 -07:00
2016-04-15 09:59:29 -07:00
2016-11-29 09:56:57 -08:00
2016-09-14 14:09:13 -07:00
2016-09-14 14:08:57 -07:00
2016-04-15 09:59:29 -07:00
2016-04-15 09:59:29 -07:00
2016-04-19 15:38:48 -07:00
2016-09-14 14:07:55 -07:00
2017-01-26 15:13:01 -07:00