Go to Post I'm going through waves of excitment and panic all at the same time. - je2164 [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 26-01-2015, 08:26
roberthashley roberthashley is offline
Registered User
FRC #2611 (Jactown Vectors)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2013
Location: Jackson, Michigan
Posts: 9
roberthashley is an unknown quantity at this point
Exclamation RoboRio Accelerometer

Hi im a programmer on team 2611 and we are thinking of using the built-in accelerometer on the RoboRio to make are bot drive straight, but we have no idea how to do that. I have been looking all over the internet and the example codes, and nothing can someone help us.
Reply With Quote
  #2   Spotlight this post!  
Unread 26-01-2015, 09:20
anthonyttu anthonyttu is offline
Texas Instruments Engineer
AKA: Master Chief
FRC #5417 (Eagle Robotics)
Team Role: Mentor
 
Join Date: Aug 2008
Rookie Year: 2008
Location: Dallas
Posts: 61
anthonyttu has a spectacular aura aboutanthonyttu has a spectacular aura about
Re: RoboRio Accelerometer

It would be easier to help if you gave more feedback about which programming language your team is using. This is a link to the WPI tutorials for accelerometers. The built in about half way down the page.

https://wpilib.screenstepslive.com/s...eter_interface
Reply With Quote
  #3   Spotlight this post!  
Unread 26-01-2015, 09:45
roberthashley roberthashley is offline
Registered User
FRC #2611 (Jactown Vectors)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2013
Location: Jackson, Michigan
Posts: 9
roberthashley is an unknown quantity at this point
Re: RoboRio Accelerometer

We are using labview
Reply With Quote
  #4   Spotlight this post!  
Unread 26-01-2015, 10:15
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: RoboRio Accelerometer

I can't think of any way to use accelerometer information to control the robot's direction. You'd need something that can measure turning, like a gyro (yaw rate sensor) or wheel encoders on the left and right sides of the robot.
Reply With Quote
  #5   Spotlight this post!  
Unread 26-01-2015, 10:18
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: RoboRio Accelerometer

If your goal is to drive straight, you may find it easier to accomplish using a gyro or wheel encoders.

An accelerometer will give you translational forces, and depending on where the gyro is mounted, you may be able to calculate rotational forces from that. Also, if the robot tilts, gravity's effect will show up on the X and Y axes and appear as a translational force.

So while using the accelerometer may provide some data to improve your robot's ability to drive straight, it may not be the most direct route.

Greg McKaskle
Reply With Quote
  #6   Spotlight this post!  
Unread 26-01-2015, 10:34
roberthashley roberthashley is offline
Registered User
FRC #2611 (Jactown Vectors)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2013
Location: Jackson, Michigan
Posts: 9
roberthashley is an unknown quantity at this point
Re: RoboRio Accelerometer

Ok thanks. We were trying to save space in the electrical box but I guess we will have to use a gyro. Thanks again.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 03:45.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi