This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int min_index=0; | |
for(i=0;i<3;i++) | |
if(area_sums[i] < area_sums[min_index]) | |
min_index = i; | |
int j; | |
printf("Minimum at %d\n",min_index); | |
if(pin_is_set(LP_PIN[min_index+2])){ | |
//do nothing | |
} | |
else{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int find_area_index(int x_cordinate){ | |
int x_offset = x_cordinate%FREENECT_FRAME_W; return x_offset/(FREENECT_FRAME_W/3); | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
target_link_libraries(glview freenect ${OPENGL_LIBRARIES} ${GLUT_LIBRARY} ${CMAKE_THREAD_LIBS_INIT} ${MATH_LIB} parapin ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
###################################################################################### | |
# Packages needed for examples | |
###################################################################################### | |
set(CMAKE_C_FLAGS "-Wall") | |
if (WIN32) | |
set_source_files_properties(glview.c PROPERTIES LANGUAGE CXX) | |
set_source_files_properties(glpclview.c PROPERTIES LANGUAGE CXX) | |
set_source_files_properties(tiltdemo.c PROPERTIES LANGUAGE CXX) |