Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IFR improvment #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 7 additions & 0 deletions InvenSenseController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,13 @@ OSVR_ReturnCode InvenSenseController::setSensorConfig(int sensor, const std::str
return OSVR_RETURN_SUCCESS;
}

OSVR_ReturnCode InvenSenseController::getSensorConfig(int sensor, const std::string & settings, std::string & data){
device->getSensorConfig(sensor, settings, data);
return OSVR_RETURN_SUCCESS;
}



void InvenSenseController::waitForDebugger(DeviceClient *device) {
std::cout << "waitForDebugger" << std::endl;
}
Expand Down
4 changes: 4 additions & 0 deletions InvenSenseController.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ class InvenSenseController : public DeviceDebuggerHook,
OSVR_ReturnCode setSensorConfig(int sensor, const std::string & settings, const std::string & value);

/*
@brief Get sesor config by sensor ID in given variable
*/
OSVR_ReturnCode InvenSenseController::getSensorConfig(int sensor, const std::string & settings, std::string & data);
/*
@brief Implements required function for DeviceErrorHandler
*/
void handleDeviceError(DeviceClient *device, const std::exception &e);
Expand Down
Loading