Go to Post That box you think you see is only an illusion. - Alan Anderson [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 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
  #2   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
  #3   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
  #4   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
  #5   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