#include <orientation.h>
Public Member Functions | |
double | get_pitch () |
double | get_roll () |
double | get_yaw () |
Orientation () | |
void | updateAngles (float gyroscopeVector[3], float AccelerationVector[3], double gyroscopeTimestamp) |
~Orientation () | |
Private Member Functions | |
void | calculate_new_gravity (float acceleration[3]) |
void | detectGravity (double gravity[3], float acceleration[3]) |
bool | isEqual (double vector1[3], double vector2[3]) |
double | ToRad (double value) |
Private Attributes | |
double | gravity [3] |
double | gravityEpsilon |
double | lastGravityVectorDetected [3] |
double | pitch |
double | pitchOffset |
double | roll |
double | rollOffset |
double | timestampPreviousCall |
int | validAccelerationVectorsNecessaryToDetectGravity |
int | validGravityCounter |
double | yaw |
Definition at line 11 of file orientation.h.
Definition at line 33 of file orientation.cpp.
Orientation::~Orientation | ( | ) | [inline] |
Definition at line 36 of file orientation.h.
void Orientation::calculate_new_gravity | ( | float | acceleration[3] | ) | [private] |
Definition at line 105 of file orientation.cpp.
void Orientation::detectGravity | ( | double | gravity[3], |
float | acceleration[3] | ||
) | [private] |
Definition at line 77 of file orientation.cpp.
double Orientation::get_pitch | ( | ) |
Definition at line 149 of file orientation.cpp.
double Orientation::get_roll | ( | ) |
Definition at line 144 of file orientation.cpp.
double Orientation::get_yaw | ( | ) |
Definition at line 154 of file orientation.cpp.
bool Orientation::isEqual | ( | double | vector1[3], |
double | vector2[3] | ||
) | [private] |
Definition at line 56 of file orientation.cpp.
double Orientation::ToRad | ( | double | value | ) | [private] |
Definition at line 49 of file orientation.cpp.
void Orientation::updateAngles | ( | float | gyroscopeVector[3], |
float | AccelerationVector[3], | ||
double | gyroscopeTimestamp | ||
) |
Definition at line 64 of file orientation.cpp.
double Orientation::gravity[3] [private] |
Definition at line 22 of file orientation.h.
double Orientation::gravityEpsilon [private] |
Definition at line 23 of file orientation.h.
double Orientation::lastGravityVectorDetected[3] [private] |
Definition at line 26 of file orientation.h.
double Orientation::pitch [private] |
Definition at line 20 of file orientation.h.
double Orientation::pitchOffset [private] |
Definition at line 17 of file orientation.h.
double Orientation::roll [private] |
Definition at line 19 of file orientation.h.
double Orientation::rollOffset [private] |
Definition at line 18 of file orientation.h.
double Orientation::timestampPreviousCall [private] |
Definition at line 16 of file orientation.h.
Definition at line 25 of file orientation.h.
int Orientation::validGravityCounter [private] |
Definition at line 24 of file orientation.h.
double Orientation::yaw [private] |
Definition at line 21 of file orientation.h.