Go to Post More later, if anyone's interested and I still have homework to avoid. - Chris is me [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 21-04-2014, 16:39
Invictus3593's Avatar
Invictus3593 Invictus3593 is offline
time you like wasting is not wasted
FRC #3593 (Team Invictus)
Team Role: Leadership
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Tulsa, OK
Posts: 318
Invictus3593 is just really niceInvictus3593 is just really niceInvictus3593 is just really niceInvictus3593 is just really nice
Re: Mini map display on the Dashboard

Quote:
No matter how many corrections I tried, I could not maintain a reasonable value for position for more than about 10 seconds. Any small error in acceleration measurement is compounded when you integrate to get velocity, and any small error in velocity is further compounded when you integrate to get position. All of these errors sum up very quickly. As far as I can tell, the kit accelerometer simply does not have enough precision to be used in this way (although I would really like to be proven wrong). The sample times could also be an issue if a higher-precision accelerometer were used, but I am convinced that the limiting factor when using the kit accelerometer is its precision, not the sample times.
This is why I lean more towards the encoder/gyro method. Too many variables and errors in the accelerometer. But I may find that the encoder method has them too, only one way to find out. I'm gonna convince a few members of my team to help me work on an encoder/omni-wheel/gyro project with a kit chassis and give you guys an update in a few weeks.

Any suggestions before I start?

EDIT: The next thing after a mechanical solution has been found would be how to plot all this data on a 2D x&y plane on your dashboard in real time. I'm guessing the DB would do all the calculations and just get a couple SD Variables for encoders and gyro from the bot?
__________________
Per Audacia Ad Astra

Last edited by Invictus3593 : 21-04-2014 at 16:49.
Reply With Quote
  #2   Spotlight this post!  
Unread 21-04-2014, 17:43
Caleb Sykes's Avatar
Caleb Sykes Caleb Sykes is offline
Registered User
FRC #4536 (MinuteBots)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2009
Location: St. Paul, Minnesota
Posts: 1,052
Caleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond repute
Re: Mini map display on the Dashboard

Quote:
Originally Posted by Invictus3593 View Post
Any suggestions before I start?
Study up on your trigonometry and dimensional analysis.

On an unrelated note, make sure that your wheels are not pushing too hard on the ground, or you might be sacrificing some acceleration/pushing power come competition.
Reply With Quote
  #3   Spotlight this post!  
Unread 21-04-2014, 18:21
Invictus3593's Avatar
Invictus3593 Invictus3593 is offline
time you like wasting is not wasted
FRC #3593 (Team Invictus)
Team Role: Leadership
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Tulsa, OK
Posts: 318
Invictus3593 is just really niceInvictus3593 is just really niceInvictus3593 is just really niceInvictus3593 is just really nice
Re: Mini map display on the Dashboard

Quote:
Originally Posted by inkling16 View Post
Study up on your trigonometry and dimensional analysis.
I've already been graphing test data (both encoders and a sample angle) in Microsoft Mathematics. I think I've got the graphing figured out.

Inputs:
ΔX and ΔY relative to the robot
Δangle relative to the last angle

Once one has these variables, they can use the rotateXY block in the geometry library to translate the whole thing to whatever angle is given by θ, the gyro.

Please correct me if I'm wrong on any of this.

Quote:
On an unrelated note, make sure that your wheels are not pushing too hard on the ground, or you might be sacrificing some acceleration/pushing power come competition.
Good idea! Do you think they need to be spring-loaded in the case that a robot gets tipped a bit?
__________________
Per Audacia Ad Astra

Last edited by Invictus3593 : 22-04-2014 at 09:14.
Reply With Quote
  #4   Spotlight this post!  
Unread 22-04-2014, 22:38
Kevin Phan's Avatar
Kevin Phan Kevin Phan is offline
College Student
FRC #0357 (Royal Assault)
Team Role: Alumni
 
Join Date: Apr 2013
Rookie Year: 2010
Location: PA, United States
Posts: 95
Kevin Phan will become famous soon enoughKevin Phan will become famous soon enough
Re: Mini map display on the Dashboard

Here's the code for the minimap. It currently has only the rotation function working. You can observe how the image moves across the field. You can probably tell where I went wrong.
Attached Files
File Type: zip 2014 DashBoard Jester 1.0.zip (487.2 KB, 11 views)
__________________
VEX & FRC Student Team Member #357 Royal Assault 2010-2014 "Dare Mighty Things"
2014-2019 Attending Drexel University Major:Electrical Enginnering
Reply With Quote
  #5   Spotlight this post!  
Unread 22-04-2014, 23:16
Invictus3593's Avatar
Invictus3593 Invictus3593 is offline
time you like wasting is not wasted
FRC #3593 (Team Invictus)
Team Role: Leadership
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Tulsa, OK
Posts: 318
Invictus3593 is just really niceInvictus3593 is just really niceInvictus3593 is just really niceInvictus3593 is just really nice
Re: Mini map display on the Dashboard

Quote:
Originally Posted by Kevin Phan View Post
Here's the code for the minimap. It currently has only the rotation function working. You can observe how the image moves across the field. You can probably tell where I went wrong.
Wow! awesome job! I was able to map that rotation to a knob control and rotate a picture, but once I've turned the picture, it keeps the box where it originally was.

Before rotation:


At a 60-degree angle:


Did you get this too when you tested? It may be because the image I used wasn't the one you tested with.
__________________
Per Audacia Ad Astra
Reply With Quote
  #6   Spotlight this post!  
Unread 23-04-2014, 04:59
Kevin Phan's Avatar
Kevin Phan Kevin Phan is offline
College Student
FRC #0357 (Royal Assault)
Team Role: Alumni
 
Join Date: Apr 2013
Rookie Year: 2010
Location: PA, United States
Posts: 95
Kevin Phan will become famous soon enoughKevin Phan will become famous soon enough
Re: Mini map display on the Dashboard

What I found while testing the rotation display on the minimap was that you need to have a center of rotation lined up close. If you look at the code for the rotation, you can see that I set the center of rotation close to middle of the image. I thought I had folder called photo along with it...
__________________
VEX & FRC Student Team Member #357 Royal Assault 2010-2014 "Dare Mighty Things"
2014-2019 Attending Drexel University Major:Electrical Enginnering

Last edited by Kevin Phan : 23-04-2014 at 05:04.
Reply With Quote
  #7   Spotlight this post!  
Unread 23-04-2014, 05:06
Kevin Phan's Avatar
Kevin Phan Kevin Phan is offline
College Student
FRC #0357 (Royal Assault)
Team Role: Alumni
 
Join Date: Apr 2013
Rookie Year: 2010
Location: PA, United States
Posts: 95
Kevin Phan will become famous soon enoughKevin Phan will become famous soon enough
Re: Mini map display on the Dashboard

Here's the folder for the picture on the mini map. Place it in Program files and in the FRC Dashboard and the minimap should work, if you haven't change the path to the files of the picture on the Dashboard.
Attached Files
File Type: zip Photo.zip (17.2 KB, 6 views)
__________________
VEX & FRC Student Team Member #357 Royal Assault 2010-2014 "Dare Mighty Things"
2014-2019 Attending Drexel University Major:Electrical Enginnering
Reply With Quote
  #8   Spotlight this post!  
Unread 23-04-2014, 18:06
Invictus3593's Avatar
Invictus3593 Invictus3593 is offline
time you like wasting is not wasted
FRC #3593 (Team Invictus)
Team Role: Leadership
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Tulsa, OK
Posts: 318
Invictus3593 is just really niceInvictus3593 is just really niceInvictus3593 is just really niceInvictus3593 is just really nice
Re: Mini map display on the Dashboard

Quote:
Originally Posted by Kevin Phan View Post
Here's the folder for the picture on the mini map. Place it in Program files and in the FRC Dashboard and the minimap should work, if you haven't change the path to the files of the picture on the Dashboard.
This worked. For the movement in the XY plane, is the box created by the robot picture movable? If not, it may be beneficial to try having two pixmaps, one for the field and one for the robot. The robot pixmap could then be moved around the field by use of property nodes and rotated based on your rotation code.

I'll see if I can get to work on that.
__________________
Per Audacia Ad Astra
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 08:57.

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