[PD] converting accelerometer & gyro to positive values

Pagano, Patrick pat at digitalworlds.ufl.edu
Fri Jun 17 16:49:56 CEST 2011


Thanks frank, you rule

pp

On 6/17/11 10:37 AM, "Frank Barknecht" <fbar at footils.org> wrote:

>On Thu, Jun 16, 2011 at 09:21:53AM -0400, Pagano, Patrick wrote:
>> I am still fooling around with rjdj and I was wondering what way
>> people are using to turn r #acceleromter & r #gyro to positive values.
>> I usually use a mccallum abstraction d-scale for stuff like this but I
>> am not sure it will work with vanilla/rjlib, so I am wondering what
>> others may suggest.
>
>You can use the [m_scale] abstraction in rj to rescale values between
>various ranges, also using non-linear translations.
>
>If you are interested in the magnitude of the accelerometer
>settings you can also use the [m_accel_magnitude] abstraction, which
>whill give you the magnitude in all directions (i.e. how hard someone is
>shaking the device).
>
>Ciao
>-- 
>Frank
>
>_______________________________________________
>Pd-list at iem.at mailing list
>UNSUBSCRIBE and account-management ->
>http://lists.puredata.info/listinfo/pd-list




More information about the Pd-list mailing list