MCPcopy Create free account
hub / github.com/OSVR/OSVR-Core / myOrientationCallback

Function myOrientationCallback

examples/clients/TrackerCallback.cpp:48–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48void myOrientationCallback(void * /*userdata*/,
49 const OSVR_TimeValue * /*timestamp*/,
50 const OSVR_OrientationReport *report) {
51 std::cout << "Got ORIENTATION report: Orientation = ("
52 << osvrQuatGetW(&(report->rotation)) << ", ("
53 << osvrQuatGetX(&(report->rotation)) << ", "
54 << osvrQuatGetY(&(report->rotation)) << ", "
55 << osvrQuatGetZ(&(report->rotation)) << "))" << std::endl;
56}
57
58void myPositionCallback(void * /*userdata*/,
59 const OSVR_TimeValue * /*timestamp*/,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected