Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
//gcc -Wall -g -o "%e" "%f" -lfreenect -lfreenect_sync #include
#include
#include
#include
#include
//tcgetattr and sleep int count = 0; //counter for tilt void no_kinect_quit(void){ printf("Error: Kinect not connected?\n"); exit(1); } int main(int argc, char *argv[]){ while (1) { //pan back and forth mindlessly // int tilt = count; // -15 to 14 for (int count =0 ; count<=16; count+=2){ // Set the tilt angle (in degrees) if (freenect_sync_set_tilt_degs(count, 0)) no_kinect_quit(); printf("tilt[%d] \n", count); sleep(1); } for (int count = 16; count>= -16 ; count-=2){ // Set the tilt angle (in degrees) if (freenect_sync_set_tilt_degs(count, 0)) no_kinect_quit(); printf("tilt[%d] \n", count); sleep(1); } } }
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)