Statistics
| Branch: | Revision:

adafruit_bno055 @ 651c5f56

Name Size
  examples
  utility
Adafruit_BNO055.cpp 19.692 KB
Adafruit_BNO055.h 14.384 KB
README.md 1.95 KB
library.properties 389 Bytes

Latest revisions

# Date Author Comment
651c5f56 2016-02-26 17:37 Gé Vissers

limit scope of loop variable

a61c970f 2016-02-26 15:38 Gé Vissers

Fix use of abs() function with float argument.

The abs() function in stdlib.h takes an integer argument. Passing it a float
will silently convert the argument to int, and take the absolute value of the
result. Hence, abs(0.99) == 0, which is not what was intended. Use fabs instead.

d7b28532 2016-02-26 15:34 Gé Vissers

make member functions const where appropriate, and pass vectors by reference

a6c06c10 2016-02-26 15:33 Gé Vissers

Remove unused include

fd9de024 2016-02-26 13:20 Gé Vissers

The cross product is only defined for 3D vectors. Instead of checking the size
at runtime, only provide an implementation for N==3. Trying to use the cross
function with other vector sizes will then result in a link error.

7ede6000 2016-02-25 16:04 Gé Vissers

Excessive parentheses only make the expressions hareder to read.

2dd31024 2016-02-25 15:45 Gé Vissers

Replace use of float by double.

All values in a quaternion are declared double, let's not lose precision on
platforms where double is larger than float.

2b07acc9 2016-02-25 15:42 Gé Vissers

Simplify a few more functions, and pass vector arguments by reference

88b09bb5 2016-02-25 15:20 Gé Vissers

Simplify constructors

0ecc7129 2016-02-25 15:09 Gé Vissers

Simplify several functions by replacing the body with one-line calls to the
constructor. Furthermore, pass Quaternion arguments by reference to avoid
excessive copying.

View all revisions | View revisions

Also available in: Atom