Go to Post Sometimes an aggravating season is the most educational. - Al Skierkiewicz [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 04-01-2015, 18:00
Joseph DeRoest's Avatar
Joseph DeRoest Joseph DeRoest is offline
A programmer turned CAD...
FRC #2990 (Hotwire Robotics)
Team Role: CAD
 
Join Date: Jan 2014
Rookie Year: 2012
Location: Stayton, OR
Posts: 25
Joseph DeRoest is a jewel in the roughJoseph DeRoest is a jewel in the roughJoseph DeRoest is a jewel in the rough
Need Help With Mecanum Code

Okay, what we're trying to do is to, through LabVIEW, programmatically make a robot with a mecanum drivetrain drive "smoothly." We will be using PID, a gyro, and a Nav6 sensor. Any help will be appreciated. We encourage adding code examples in your answers.

Thank you!
Reply With Quote
  #2   Spotlight this post!  
Unread 04-01-2015, 18:05
electronicsdude's Avatar
electronicsdude electronicsdude is offline
Registered User
AKA: Spencer
FRC #4918 (The Roboctopi)
Team Role: Engineer
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Port Townsend, WA
Posts: 15
electronicsdude will become famous soon enoughelectronicsdude will become famous soon enough
Re: Need Help With Mecanum Code

Quote:
Originally Posted by Joseph DeRoest View Post
Okay, what we're trying to do is to, through LabVIEW, programmatically make a robot with a mecanum drivetrain drive "smoothly." We will be using PID, a gyro, and a Nav6 sensor. Any help will be appreciated. We encourage adding code examples in your answers.

Thank you!
You are probably going to need encoders on all four of your wheels for precise closed loop rotation monitoring. Otherwise your robot may drive erratically.
Reply With Quote
  #3   Spotlight this post!  
Unread 04-01-2015, 18:17
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,100
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Need Help With Mecanum Code

Quote:
Originally Posted by Joseph DeRoest View Post
Okay, what we're trying to do is to, through LabVIEW, programmatically make a robot with a mecanum drivetrain drive "smoothly."
First and foremost, make it drive "smoothly" and predictably without sensors. Then integrate the sensors.

Don't try to fix poor craftsmanship with software.

http://www.chiefdelphi.com/forums/sh...3&postcount=41


Reply With Quote
  #4   Spotlight this post!  
Unread 04-01-2015, 19:04
Joseph DeRoest's Avatar
Joseph DeRoest Joseph DeRoest is offline
A programmer turned CAD...
FRC #2990 (Hotwire Robotics)
Team Role: CAD
 
Join Date: Jan 2014
Rookie Year: 2012
Location: Stayton, OR
Posts: 25
Joseph DeRoest is a jewel in the roughJoseph DeRoest is a jewel in the roughJoseph DeRoest is a jewel in the rough
Re: Need Help With Mecanum Code

Quote:
Originally Posted by Ether View Post
First and foremost, make it drive "smoothly" and predictably without sensors. Then integrate the sensors.

Don't try to fix poor craftsmanship with software.

http://www.chiefdelphi.com/forums/sh...3&postcount=41


We already did make it drive smoothly without sensors.
Reply With Quote
  #5   Spotlight this post!  
Unread 04-01-2015, 19:11
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,752
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: Need Help With Mecanum Code

In that case, please describe the difference between what it currently does and what you want it to do.

What is the difference between driving smoothly and "smoothly"?

Please describe any sensors you have mounted, any data you've gathered from those sensors and the ideas for how you'd like the sensor data to affect the driving.

Greg McKaskle
Reply With Quote
  #6   Spotlight this post!  
Unread 04-01-2015, 19:19
Joseph DeRoest's Avatar
Joseph DeRoest Joseph DeRoest is offline
A programmer turned CAD...
FRC #2990 (Hotwire Robotics)
Team Role: CAD
 
Join Date: Jan 2014
Rookie Year: 2012
Location: Stayton, OR
Posts: 25
Joseph DeRoest is a jewel in the roughJoseph DeRoest is a jewel in the roughJoseph DeRoest is a jewel in the rough
Re: Need Help With Mecanum Code

My assumption was that a gyro and PID loops would make it the difference between smooth and "smooth". I could be wrong?

I understand that a good mechanical design is needed. What I want to assume is that mechanical is mostly perfect and we want sensors to correct any errors.

Right now, we do not have sensors mounted. However, we are getting a NAV6 IMU sensor to mount to give us that extra "oomph" (we haven't had good experiences with those AndyMark/KOP gyros).

Thanks!

Last edited by Joseph DeRoest : 04-01-2015 at 19:23.
Reply With Quote
  #7   Spotlight this post!  
Unread 04-01-2015, 19:58
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,100
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Need Help With Mecanum Code


We'd like to help you, but we need to understand what you are trying to accomplish before we can give suggestions how to do it.

Quote:
Originally Posted by Joseph DeRoest View Post
My assumption was that a gyro and PID loops would make it the difference between smooth and "smooth".
There are many different ways you can integrate a gyro with your drivetrain control. Tell us what you want the gyro to do for you.

Quote:
What I want to assume is that mechanical is mostly perfect and we want sensors to correct any errors.
What kind of errors are you referring to? What does the vehicle presently not do that you want it to do? Or conversely, what does the vehicle presently do that you don't want it to do?

Quote:
However, we are getting a NAV6 IMU sensor to mount to give us that extra "oomph"
Can you explain what you mean by "oomph"?

Or, are you just seeking suggestions how encoders and IMUs can be used with a drivetrain?


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 20:07.

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