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-01-28 15:37:31 -08:00
2015-12-21 16:04:05 -08:00
2016-04-15 09:59:29 -07:00
2015-12-04 17:41:26 -08:00
2017-02-09 15:11:59 -08:00
2017-02-09 15:11:59 -08:00
2015-12-04 17:41:26 -08:00
2016-07-06 15:13:00 -06:00
2016-07-06 15:13:00 -06:00
2016-07-06 15:13:00 -06:00
2016-07-06 15:13:00 -06:00
2016-04-15 09:59:29 -07:00
2016-03-22 16:57:08 -07:00
2016-04-15 09:59:29 -07:00
2016-09-14 14:07:47 -07:00
2015-12-04 17:41:26 -08:00
2016-06-14 16:40:21 -06:00
2016-06-14 16:40:21 -06:00
2016-05-09 13:16:30 -07:00
2017-03-02 20:14:03 -08:00
2016-06-14 16:40:21 -06:00
2016-06-14 16:40:21 -06:00
2016-03-22 22:52:31 -07:00
2016-06-14 16:40:21 -06:00
2016-05-09 13:16:30 -07:00
2015-12-04 17:41:26 -08:00
2016-06-14 16:40:21 -06:00
2017-03-07 13:16:24 -07:00
2016-09-14 14:09:16 -07:00
2016-09-14 14:09:16 -07:00
2016-10-28 16:48:53 -06:00
2015-12-04 17:41:26 -08:00
2017-03-02 23:05:51 -08:00
2016-09-14 14:09:12 -07:00
2016-03-22 16:36:10 -07:00
2016-09-14 14:09:15 -07:00
2016-09-14 14:07:52 -07:00
2015-12-04 17:41:26 -08:00
2016-06-14 17:00:00 -06:00
2016-11-28 17:45:23 -07:00
2016-04-29 11:07:10 -07:00
2016-09-14 14:09:13 -07:00
2016-09-14 14:08:58 -07:00
2017-01-30 12:06:32 -07:00
2015-12-04 17:41:26 -08:00
2016-03-10 15:55:21 -08:00
2016-04-15 09:59:29 -07:00
2016-09-14 14:09:23 -07:00
2016-09-14 14:09:23 -07:00
2016-09-14 14:09:23 -07:00
2016-09-14 14:09:23 -07:00
2016-09-14 14:09:23 -07:00
2016-09-14 14:09:23 -07:00
2015-12-04 17:41:26 -08:00
2016-02-16 11:51:50 -08:00
2016-09-14 14:09:23 -07:00
2016-09-14 14:09:23 -07:00
2015-12-04 17:41:26 -08:00
2015-12-04 17:41:26 -08:00
2016-09-14 14:09:23 -07:00
2015-12-04 17:41:26 -08:00
2015-12-04 17:41:26 -08:00
2016-09-14 14:09:23 -07:00
2015-12-04 17:41:26 -08:00
2016-09-14 14:09:23 -07:00
2016-09-14 14:09:23 -07:00
2015-12-04 17:41:26 -08:00
2016-09-14 14:09:23 -07:00
2016-09-14 14:09:23 -07:00
2016-09-14 14:09:23 -07:00
2016-09-14 14:09:23 -07:00
2016-09-14 14:09:23 -07:00
2015-12-04 17:41:26 -08:00
2016-09-14 14:08:58 -07:00
2016-11-04 12:52:33 -06:00
2015-12-04 17:41:26 -08:00
2016-03-22 22:58:17 -07:00
2015-12-04 17:41:26 -08:00
2016-09-14 14:07:50 -07:00
2015-12-04 17:41:26 -08:00
2015-12-04 17:41:26 -08:00
2015-12-04 17:41:26 -08:00
2016-04-15 09:59:29 -07:00
2015-12-04 17:41:26 -08:00
2016-11-29 09:56:57 -08:00
2015-12-04 17:41:26 -08:00
2015-12-04 17:41:26 -08:00
2015-12-04 17:41:26 -08:00
2015-12-04 17:41:26 -08:00
2016-01-28 16:13:37 -08:00
2015-12-04 17:41:26 -08:00
2015-12-21 16:04:05 -08:00
2015-12-04 17:41:26 -08:00
2017-01-24 14:02:03 -07:00
2016-09-14 14:09:13 -07:00
2016-09-14 14:09:01 -07:00
2016-09-14 14:09:26 -07:00
2015-12-04 17:41:26 -08:00
2016-01-28 16:13:37 -08:00
2015-12-04 17:41:26 -08:00
2015-12-04 17:41:26 -08:00
2016-04-29 11:07:10 -07:00
2017-01-10 11:29:30 -08:00
2016-04-29 11:07:10 -07:00
2015-12-04 17:41:26 -08:00
2016-04-29 11:07:10 -07:00
2016-12-02 16:44:43 -07:00
2016-12-20 12:17:14 -07:00
2016-12-20 12:17:14 -07:00
2016-10-18 17:04:50 -06:00
2015-12-04 17:41:26 -08:00
2015-12-04 17:41:26 -08:00
2016-09-14 14:07:46 -07:00
2015-12-04 17:41:26 -08:00
2016-10-27 15:13:20 -06:00
2016-09-14 14:09:12 -07:00
2015-12-04 17:41:26 -08:00
2015-12-04 17:41:26 -08:00
2015-12-04 17:41:26 -08:00
2015-12-04 17:41:26 -08:00
2015-12-04 17:41:26 -08:00
2015-12-04 17:41:26 -08:00
2016-11-14 17:26:42 -07:00
2016-09-14 14:07:48 -07:00
2016-09-14 14:07:49 -07:00
2015-12-04 17:41:26 -08:00
2015-12-04 17:41:26 -08:00
2017-01-31 13:08:20 -07:00
2016-09-14 14:08:57 -07:00
2015-12-04 17:41:26 -08:00
2016-11-02 17:51:05 -06:00
2015-12-04 17:41:26 -08:00
2016-09-14 14:09:11 -07:00
2015-12-04 17:41:26 -08:00
2015-12-04 17:41:26 -08:00
2016-09-14 14:09:11 -07:00
2016-01-28 15:37:31 -08:00
2015-12-04 17:41:26 -08:00
2016-09-14 14:09:22 -07:00
2017-03-02 23:05:51 -08:00
2016-09-16 16:52:49 -06:00
2016-09-14 14:09:01 -07:00
2016-04-29 11:07:10 -07:00
2017-02-01 17:08:05 -07:00
2016-09-14 14:09:20 -07:00
2015-12-04 17:41:26 -08:00
2015-12-04 17:41:26 -08:00
2015-12-04 17:41:26 -08:00
2015-12-22 15:24:11 -08:00
2016-06-14 17:04:17 -06:00
2016-06-14 17:12:32 -06:00
2016-03-22 16:49:37 -07:00
2016-09-14 14:09:03 -07:00
2016-03-22 17:16:21 -07:00
2016-04-15 09:59:29 -07:00
2015-12-04 17:41:26 -08:00
2015-12-04 17:41:26 -08:00
2016-04-15 09:59:29 -07:00
2015-12-04 17:41:26 -08:00
2015-12-04 17:41:26 -08:00
2016-07-06 15:13:00 -06:00
2016-10-24 16:05:39 -06:00
2016-04-19 15:38:48 -07:00
2016-09-14 14:07:55 -07:00
2016-04-15 09:59:29 -07:00
2016-09-14 14:09:18 -07:00
2017-01-26 15:13:01 -07:00
2015-12-04 17:41:26 -08:00
2015-12-04 17:41:26 -08:00
2015-12-04 17:41:26 -08:00