|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Mini map display on the Dashboard
Quote:
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? Last edited by Invictus3593 : 21-04-2014 at 16:49. |
|
#2
|
||||
|
||||
|
Re: Mini map display on the Dashboard
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. |
|
#3
|
||||
|
||||
|
Re: Mini map display on the Dashboard
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:
Last edited by Invictus3593 : 22-04-2014 at 09:14. |
|
#4
|
||||
|
||||
|
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.
|
|
#5
|
||||
|
||||
|
Re: Mini map display on the Dashboard
Quote:
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. |
|
#6
|
||||
|
||||
|
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...
Last edited by Kevin Phan : 23-04-2014 at 05:04. |
|
#7
|
||||
|
||||
|
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.
|
|
#8
|
||||
|
||||
|
Re: Mini map display on the Dashboard
Quote:
I'll see if I can get to work on that. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|