[PD] gyro sensors to absolute rotation WAS: Re: gimbal lock solution?
Le 09/02/2013 21:11, Roman Haefeli a écrit : On Sam, 2013-02-09 at 16:41 +0100, Cyrille Henry wrote: Yeah, right. But you can add the values up to get rotation (of course, it's always rotation relative to itself, which will obviously drift from reality over time). yep. drift usually make this useless. in theory (with infinite acurate sensors, no drift etc), you have to do a feedback loop (using gemlist_info), so that the current rotation is modify by the sensors value. (rotation did not sums up) ...parsing solution beep.. stack overflow (in my head)! You mean you add each increment (gyro measurement) to the rotation separately, then get the orientation with gem_list info, add the next increment to the orientation, get orientation again, add increment etc? Can you cast that into a little Gem example patch, if it is not too much trouble? yes. see attachment. cheers c Roman ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list gyro_2_absolute.pd Description: application/puredata ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] gyro sensors to absolute rotation WAS: Re: gimbal lock solution?
On Son, 2013-02-10 at 10:16 +0100, Cyrille Henry wrote: You mean you add each increment (gyro measurement) to the rotation separately, then get the orientation with gem_list info, add the next increment to the orientation, get orientation again, add increment etc? Can you cast that into a little Gem example patch, if it is not too much trouble? yes. see attachment. Hey Cyrille, just before I read your mail I figured it out myself. The trick (as also shown in your patch) is to use one [rotateXYZ] for adding the increments and another one for setting the current orientation received from [gemlist_info]. You really triggered an 'aha' kind of moment in my head. Thank you for that. Roman ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] gyro sensors to absolute rotation WAS: Re: gimbal lock solution?
Le 10/02/2013 13:54, Roman Haefeli a écrit : On Son, 2013-02-10 at 10:16 +0100, Cyrille Henry wrote: You mean you add each increment (gyro measurement) to the rotation separately, then get the orientation with gem_list info, add the next increment to the orientation, get orientation again, add increment etc? Can you cast that into a little Gem example patch, if it is not too much trouble? yes. see attachment. Hey Cyrille, just before I read your mail I figured it out myself. The trick (as also shown in your patch) is to use one [rotateXYZ] for adding the increments and another one for setting the current orientation received from [gemlist_info]. yes, and the order of the 2 rotation is important : if the sensors are relative to the object, the rotation should be in the object referential, so the sensors rotate is on top of the object. if you have a global rotation (like one would want when changing a view point with the moose), then the rotation should be next to the gemhead. You really triggered an 'aha' kind of moment in my head. Thank you for that. ;-) cheers c Roman ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list