* IIO: angular measurement types.
@ 2011-09-29 13:13 Jonathan Cameron
2011-09-29 13:22 ` Manuel Stahl
0 siblings, 1 reply; 3+ messages in thread
From: Jonathan Cameron @ 2011-09-29 13:13 UTC (permalink / raw)
To: linux-iio@vger.kernel.org
Hi All
Just looking at add chan spec support for resolvers and
realised that our representations of angular measurements
have become somewhat confused.
Right now we have
IIO_GYRO -> angular velocity (units radians / sec)
IIO_ROT -> vertical rotation position (undocumented)
IIO_ANGL -> rotation angle (currently integrated version of IIO_GYRO, undocumented)
For resolvers we seem to need
Absolute rotation position (IIO_ANGL?) set units to radians
Angular velocity (IIO_GYRO? - odd naming here) randians / sec
So, proposal is to rename IIO_GYRO - > IIO_ANGL_VEL
Anyone have an thoughts on this?
Jonathan
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: IIO: angular measurement types.
2011-09-29 13:13 IIO: angular measurement types Jonathan Cameron
@ 2011-09-29 13:22 ` Manuel Stahl
2011-09-29 13:53 ` Jonathan Cameron
0 siblings, 1 reply; 3+ messages in thread
From: Manuel Stahl @ 2011-09-29 13:22 UTC (permalink / raw)
To: Jonathan Cameron; +Cc: linux-iio@vger.kernel.org
Am Donnerstag, 29. September 2011, 15:13:44 schrieb Jonathan Cameron:
> Hi All
>
> Just looking at add chan spec support for resolvers and
> realised that our representations of angular measurements
> have become somewhat confused.
>
> Right now we have
>
> IIO_GYRO -> angular velocity (units radians / sec)
> IIO_ROT -> vertical rotation position (undocumented)
> IIO_ANGL -> rotation angle (currently integrated version of IIO_GYRO,
> undocumented)
>
> For resolvers we seem to need
>
> Absolute rotation position (IIO_ANGL?) set units to radians
> Angular velocity (IIO_GYRO? - odd naming here) randians / sec
>
> So, proposal is to rename IIO_GYRO - > IIO_ANGL_VEL
>
> Anyone have an thoughts on this?
The question is whether we want to have names according to the physical
propery we measure or names according to the common terminology of the devices
that measure that property.
i.e. gyros measure angular velocities. Are there other devices that measure
angular velocities? I think not.
Devices that measure horizontal rotation are usually called inclinometers.
Devices that measure vertical rotation are for example compasses, but there
could be others.
Devices that measure rotation angles are usually called resolvers, but this
might also be non exclusive.
Do we want to distinguish between these? They all return angles.
And what about sensors that measure rotations? They can deliver angles outside
[-PI:+PI] (i.e. several rotations), but that makes no sense for compasses.
Nevertheless I think we can keep IIO_GYRO for devices that measure angular
velocities, as this is a very common name for these.
Regards,
Manuel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: IIO: angular measurement types.
2011-09-29 13:22 ` Manuel Stahl
@ 2011-09-29 13:53 ` Jonathan Cameron
0 siblings, 0 replies; 3+ messages in thread
From: Jonathan Cameron @ 2011-09-29 13:53 UTC (permalink / raw)
To: Manuel Stahl; +Cc: linux-iio@vger.kernel.org
On 09/29/11 14:22, Manuel Stahl wrote:
> Am Donnerstag, 29. September 2011, 15:13:44 schrieb Jonathan Cameron:
>> Hi All
>>
>> Just looking at add chan spec support for resolvers and
>> realised that our representations of angular measurements
>> have become somewhat confused.
>>
>> Right now we have
>>
>> IIO_GYRO -> angular velocity (units radians / sec)
>> IIO_ROT -> vertical rotation position (undocumented)
>> IIO_ANGL -> rotation angle (currently integrated version of IIO_GYRO,
>> undocumented)
>>
>> For resolvers we seem to need
>>
>> Absolute rotation position (IIO_ANGL?) set units to radians
>> Angular velocity (IIO_GYRO? - odd naming here) randians / sec
>>
>> So, proposal is to rename IIO_GYRO - > IIO_ANGL_VEL
>>
>> Anyone have an thoughts on this?
>
> The question is whether we want to have names according to the physical
> propery we measure or names according to the common terminology of the devices
> that measure that property.
What they measure. It is true for every other type (IIRC)
>
> i.e. gyros measure angular velocities. Are there other devices that measure
> angular velocities? I think not.
resolvers. There is a reason I was looking at this ;) Can technically be
done with accelerometers in a number of locations or an accelerometer / magnetometer
pair.
Also, the term gyroscope may mean a device for measuring absolute rotation or
rotational velocity. I've heard some argue that the term is completely missused
for mems devices...
>
> Devices that measure horizontal rotation are usually called inclinometers.
But they measure inclination so that one is fine.
> Devices that measure vertical rotation are for example compasses, but there
> could be others.
> Devices that measure rotation angles are usually called resolvers, but this
> might also be non exclusive.
Also measure angular velocity (or at least the ad2s1200 does).
>
> Do we want to distinguish between these? They all return angles.
Nope. That's my argument.
>
> And what about sensors that measure rotations? They can deliver angles outside
> [-PI:+PI] (i.e. several rotations), but that makes no sense for compasses.
It does if you have sufficient tracking to know it happened. Still I agree it
doesn't make sense when using them for navigation. We probably don't need to
worry about it though. Any userspace app should trivially be able to correct
wrap around if it expects the device to be used as a compass.
>
> Nevertheless I think we can keep IIO_GYRO for devices that measure angular
> velocities, as this is a very common name for these.
I'd agree except that it makes things inconsistent. We already have one
definitely non gyroscope user. Right now the change is trivial. We can't
really do it later.
Jonathan
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-09-29 13:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-29 13:13 IIO: angular measurement types Jonathan Cameron
2011-09-29 13:22 ` Manuel Stahl
2011-09-29 13:53 ` Jonathan Cameron
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).