Author Topic: webbotlib Gyro documentation  (Read 2486 times)

0 Members and 1 Guest are viewing this topic.

Offline Aberg098Topic starter

  • Full Member
  • ***
  • Posts: 66
  • Helpful? 0
webbotlib Gyro documentation
« 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?

Offline Webbot

  • Expert Roboticist
  • Supreme Robot
  • *****
  • Posts: 2,165
  • Helpful? 111
    • Webbot stuff
Re: webbotlib Gyro documentation
« Reply #1 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.
Webbot Home: http://webbot.org.uk/
WebbotLib online docs: http://webbot.org.uk/WebbotLibDocs
If your in the neighbourhood: http://www.hovinghamspa.co.uk

Offline Aberg098Topic starter

  • Full Member
  • ***
  • Posts: 66
  • Helpful? 0
Re: webbotlib Gyro documentation
« Reply #2 on: June 16, 2011, 07:39:36 AM »
Thanks for clearing that up!


Get Your Ad Here