i'm trying to calibrate the EyeTribe within JavaScript.
So i send a heartbeat every 200ms.
When i start calibrating it happens, that the heartbeat-response kind of interferes with the actual interesting response.
Then something like this is the data from ONE message from the EyeTribe:
- Code: Select all
{"category":"heartbeat","statuscode":200}
{"category":"tracker","request":"get","statuscode":200,"values":{"frame":{"avg":{"x":0.0,"y":0.0},"fix":false,"lefteye":{"avg":{"x":0.0,"y":0.0},"pcenter":{"x":0.3968,"y":0.3453},"
psize":20.6514,"raw":{"x":0.0,"y":0.0}},"raw":{"x":0.0,"y":0.0},"righteye":{"avg":{"x":0.0,"y":0.0},"pcenter":{"x":0.5504,"y":0.3348},"psize":16.2393,"raw":{"x":0.0,"y":0.0}},"stat
e":6,"time":1020246937,"timestamp":"2014-12-12 05:44:14.617"}}}
As i have to parse the data to a JSON Object, the Parser throws an exception and if the second message inside the above code is a calibration response the procedure gets all messed up.
So my question is, if i can somehow disable the heartbeat response as it is kinda useless and only useful for debugging.
Or are there better ways to calibrate the EyeTribe in my own app? Should i disable the push mode and just request the data every 33ms?
--
and also an offtopic question: What is the longest heartbeat interval i can set? - i mean i could just try, but if you told us all, i wouldn't have to