Closed GoogleCodeExporter closed 9 years ago
Could you please provide code, that I can reproduce your issue?
Original comment by darress
on 16 Jul 2012 at 6:06
Attached the .cpp file I use, altered from the example.cpp you include in the
download. As I put in the comments, you can un-comment the if/else statement in
moveUpdated in order to see the program working with reduced lag. The program
is designed for hemiparetic stroke therapy, so the controller that moves the
least amount will control the cursor (so that the participant will have to use
their "bad" arm).
Original comment by alidamve...@gmail.com
on 16 Jul 2012 at 6:18
Attachments:
Okey, I found the cause of this phenomenon. The orientation and the position
update rate is not the same, and it can vary depending on the use of your
computer resources. Because the orientation rate is faster, and it's data more
important, the framework updates the observers if there is new orientation
data. This way, you get all data, but the the position update may wait some ms
for the orientation update.
Original comment by darress
on 25 Jul 2012 at 2:34
It's not a deffect, it's how the framework supposed to work.
Original comment by darress
on 25 Jul 2012 at 2:35
Thank you for your help. I'm still a bit confused as to why the lag appears so
quickly when I add code. It is not clear to me why adding a few conditional
statements and some data processing makes it update so much less often.
I will try commenting out where the framework updates the orientation, angular
velocity and angular acceleration, because I am only using the 3D position
tracking through the PS Eye. I will let you know if this reduces the lag.
Original comment by alidamve...@gmail.com
on 25 Jul 2012 at 7:36
The project is no longer maintained.
Original comment by darress
on 3 Aug 2012 at 2:05
Original issue reported on code.google.com by
alidamve...@gmail.com
on 16 Jul 2012 at 4:22Attachments: