Society of Robots - Robot Forum

Software => Software => Topic started by: Aberg098 on June 14, 2011, 12:46:02 PM

Title: webbotlib Gyro documentation
Post by: Aberg098 on June 14, 2011, 12:46:02 PM
Paging Webbot on this one...

I am using Sparkfun's 6DOF Razor IMU, and looking at the documentation for the gyroscopes on this board, the LPR530AL and LY530ALH. Concerning the parameters on how to set the scale of these gyros to 300 or 1200 degrees/s:

From the LY530ALH page:

"The device operates in two modes:-

    FAST - can measure faster rotation speeds, up to 1200 degrees per second, but with less accuracy, or

    SLOW - can measure rotation speeds up to 300 degrees per second with greater accuracy."

"To create the device use:-
LY530ALH yaw = MAKE_LY530ALH(ADC0,slow)
Where slow is TRUE for the SLOW output, or FALSE for the FAST output."

This is pretty clear so far, however I think the flag should read true/false, not slow/fast,

Looking at the LPR530AL:
"to create the device use:-
LPR530AL lpr = MAKE_LPR530AL(ADC0, ADC1, TRUE);"

But the description for true/false is a bit misleading. Is the definition for the true/false flag is the same as for the LPR530AL?
Title: Re: webbotlib Gyro documentation
Post by: Webbot on June 15, 2011, 07:31:32 AM
Yep the final parameter for both devices does the same thing. Set it to TRUE for slow output. Set it to FALSE for fast output.
Title: Re: webbotlib Gyro documentation
Post by: Aberg098 on June 16, 2011, 07:39:36 AM
Thanks for clearing that up!