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
..
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-03-03 10:27:12 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-03-03 10:27:12 -08:00
2017-03-03 10:27:12 -08:00
2017-02-08 11:50:00 -08:00
2017-03-07 13:16:24 -07:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-03-03 10:27:12 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-03-03 10:27:12 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 13:56:28 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-06 10:23:28 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-03-03 10:27:12 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-09 15:06:12 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-09 15:06:12 -08:00
2017-02-08 11:50:00 -08:00
2017-03-02 20:19:24 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-03-03 10:27:12 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 13:56:28 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-17 16:49:39 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-03-03 10:27:12 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 13:56:28 -08:00
2017-02-08 11:50:00 -08:00
2017-03-03 10:27:12 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-03-07 13:16:08 -07:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-03-06 12:13:27 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-03-02 23:05:51 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-03-03 10:27:12 -08:00
2017-03-03 10:27:12 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-03-03 10:27:12 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-13 23:04:20 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2017-02-08 11:50:00 -08:00
2016-10-31 10:13:08 -07:00
2015-01-19 17:34:12 -08:00
2015-01-15 15:30:55 -08:00
2015-12-21 16:36:31 -08:00
2015-12-21 16:36:31 -08:00
2015-12-21 16:36:31 -08:00
2017-02-07 15:37:46 -08:00
2014-11-27 09:31:58 +00:00
2017-02-17 16:40:09 -08:00
2015-09-15 17:01:39 -07:00
2015-11-24 14:36:04 -08:00
2016-05-09 16:34:26 -07:00
2016-01-28 16:13:37 -08:00
2016-10-31 10:13:08 -07:00
2016-10-31 10:13:08 -07:00
2017-02-06 10:23:28 -08:00
2016-09-16 13:43:16 +01:00
2016-01-28 16:13:37 -08:00
2015-08-13 14:52:01 -07:00
2017-03-07 13:16:14 -07:00
2016-12-20 12:17:09 -07:00