Sensor values
Posted: Sun Jul 31, 2011 10:11 pm
In the code I've seen that the common function calls after reading ACC and GYRO values are ACC_ORIENTATION(X, Y, Z) and GYRO_ORIENTATION(X, Y, Z).
When adding new sensors (such as an analogous gyro), how should one use these functions? Are the values supposed to be in a specific range/format.
Positive ranging, or +/- values (where 0 typically is leveled/not moving). What's min/max for each parameter??
Or should e.g. gyro values be entered in deg/s and acc values in G or deg?
Not knowing the current format expected, my opinion is having values actually measured (e.g gyro=deg/s and acc=deg) would greatly simplify the effort of adding new sensors, one would always have to convert whatever input is taken from the sensor to a specified format. Or is this conversion assumed to be too time consuming, thus affecting the loop??
Could someone please enlighten me on what range/format is expected by these functions?
Regards
demands
When adding new sensors (such as an analogous gyro), how should one use these functions? Are the values supposed to be in a specific range/format.
Positive ranging, or +/- values (where 0 typically is leveled/not moving). What's min/max for each parameter??
Or should e.g. gyro values be entered in deg/s and acc values in G or deg?
Not knowing the current format expected, my opinion is having values actually measured (e.g gyro=deg/s and acc=deg) would greatly simplify the effort of adding new sensors, one would always have to convert whatever input is taken from the sensor to a specified format. Or is this conversion assumed to be too time consuming, thus affecting the loop??
Could someone please enlighten me on what range/format is expected by these functions?
Regards
demands