|
Re: accelerometer specs
Mikes equations look correct. Sometimes you dont need to factor out the scaling of the sensor - your robot equations dont need to be in g's, if you know that 1023 is +2g and 0 is -2 g
I was working on a program once trying to calculate the RMS voltage of a chopped sinewave, which requires doing a square root calculation (try writing THAT in assembly code). After about a day of struggling with this I realized I didnt need the actual RMS (SQRT) number, I could leave the number squared and use that. (I was detecting when an RMS voltage was = 82V. The square of 82 is 6724, so instead of calculating the square root and then comparing the answer to 82, I left the number squared, and looked for 6724).
Scaling the numbers in your SW to actual units (g's, volts, degrees...) is only necessary if a human needs to look at those numbers.
Last edited by KenWittlief : 24-02-2006 at 11:14.
|