Permalink
Browse files

update description for device

  • Loading branch information...
1 parent ecafada commit 1f69e4dc55db9a0934b2b0855f46338c2f1430fa lydiatgit committed Mar 27, 2012
@@ -66,7 +66,7 @@
<key>useBits</key>
<integer>8</integer>
<key>deviceDescription</key>
- <string>ASLEyetracker</string>
+ <string>de.mpg.de.ASLEyetracker</string>
</dict>
</dict>
</plist>
@@ -143,6 +143,8 @@ -(id)init
fprintf(fileFixationsOK, "CentroidH\t\tCentroidV\n\n");
fprintf(fileFixationsOut, "CentroidH\t\tCentroidV\n\n");
+
+ srand(time(NULL));
/******************************/
}
@@ -262,7 +264,7 @@ -(NSDictionary*)evaluateConstraintForParams:(NSDictionary*)params
{
[params retain];
//ATTENTION!!!!! TEST VERSION
- return nil;
+ //return nil;
// evaluate target param from params dictionary
NSArray *paramsArray = [params objectForKey:@"paramsArray"];
@@ -306,7 +308,15 @@ -(NSDictionary*)evaluateConstraintForParams:(NSDictionary*)params
//create dictionary to return
//todo: just give back like that or sort in params and conditions???
NSDictionary *dictReturn = [NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithFloat:convertedEyePosX], @"eyePosX", [NSNumber numberWithFloat:convertedEyePosY], @"eyePosY", [NSNumber numberWithBool:isFixated], @"eyePosIsFixated", nil];
-
+
+// float x = (rand() % 100) + 400;
+// float y = (rand() % 100) + 300;
+// NSDictionary *dictReturn = [[NSDictionary alloc] initWithObjectsAndKeys:
+// [NSNumber numberWithFloat:x], @"eyePosX",
+// [NSNumber numberWithFloat:y], @"eyePosY",
+// [NSNumber numberWithBool:YES], @"eyePosIsFixated",
+// nil] ;
+
[params release];
return [dictReturn autorelease];
}

0 comments on commit 1f69e4d

Please sign in to comment.