Topic: accelerometer device
/dev/accel seems to be accessible when you shut the control panel down. I was wondering if anybody has started looking at it outside flash.
The chumby is totally cool.
You are not logged in. Please login or register.
chumbysphere forum → Hardware → accelerometer device
/dev/accel seems to be accessible when you shut the control panel down. I was wondering if anybody has started looking at it outside flash.
The chumby is totally cool.
/dev/accel is a low-level driver that is responded to by the driver chumby_accel.ko
The source code for the driver can be found in http://files.chumby.com/source/ironforg … 1.0.tar.gz at /drivers/char/chumby_accel.c. From there, you can find how the output format of the driver is formatted:
struct accelReadData {
unsigned int version;
unsigned int timestamp;
unsigned int inst[3]; // x, y, z
unsigned int avg[3];
unsigned int impact[3]; // values for the last impact peak acceleration
unsigned int impactTime;
unsigned int impactHint;
unsigned int gRange; // g range in milli-g's
};
The driver also internally logs the data at a high temporal resolution. This is intended to provide a facility to the driver writer to extract high-quality acceleration readings required for operations such as integration to velocity and position.
Source code, what an awesome concept
I had totally forgotten that I was dealing with an open platform. I've spent the last six months "dealing" with linksys arm hell. Nslu2s are cool, but you are always fighting.
Thanks Bunnie,
You've made my world better.
Ok,
I put some stuff into a blog entry. The chumby finally made me get a blog.
it would be useful for multiple procs to read accelerometer data.
chumbysphere forum → Hardware → accelerometer device
Powered by PunBB, supported by Informer Technologies, Inc.