void SixenseManager::setFilter(bool filter) { #ifdef HAVE_SIXENSE if (filter) { sixenseSetFilterEnabled(1); } else { sixenseSetFilterEnabled(0); } #endif }
void SixenseManager::setFilter(bool filter) { #ifdef HAVE_SIXENSE if (filter) { qDebug("Sixense Filter ON"); sixenseSetFilterEnabled(1); } else { qDebug("Sixense Filter OFF"); sixenseSetFilterEnabled(0); } #endif }
dev::sixense::sixense() : status(false), flying(false) { if ((status = (sixenseInit() == SIXENSE_SUCCESS && sixenseSetActiveBase(0) == SIXENSE_SUCCESS))) { float nr = ::conf->get_f("sixense_filter_near_range", 500.00); float nv = ::conf->get_f("sixense_filter_near_value", 0.95); float fr = ::conf->get_f("sixense_filter_far_range", 1600.00); float fv = ::conf->get_f("sixense_filter_far_value", 0.99); sixenseSetFilterParams(nr, nv, fr, fv); sixenseSetFilterEnabled(1); } move_rate = ::conf->get_f("sixense_move_rate", 30.0); turn_rate = ::conf->get_f("sixense_turn_rate", 120.0); hand_controller = ::conf->get_i("sixense_hand_controller", 0); fly_button = ::conf->get_i("sixense_fly_button ", 1); }