Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Plotting Location w/ Accellerometer Project (http://www.chiefdelphi.com/forums/showthread.php?t=119806)

Aaron.Graeve 04-10-2013 18:45

Re: Plotting Location w/ Accellerometer Project
 
Quote:

Originally Posted by Invictus3593 (Post 1294426)
I just tried to write up a point overlay in the dashboard like you said using the IMAQ Point overlay vi, but I can't seem to get it to actually plot a few points on the image, do you have any examples? Do you have any sample code left?

Unfortunately, I do not have any code to show and I do not have access to the libraries to recreate it. I may be able to get an example together when I go home this weekend and can get to my laptop, but until then, I can share nothing. I would only recommend that you make sure you apply the overlay after the dashboard clears the pre-existing overlays. It also may not hurt to test the overlays on a stock image (i.e. read an image from a file and try and apply the overlay; it will help make sure the process is correct.) I will post some code if I get a chance.

Joe Ross 04-10-2013 23:44

Re: Plotting Location w/ Accellerometer Project
 
1 Attachment(s)
Quote:

Originally Posted by Greg McKaskle (Post 1294410)
You could also do this in an XY graph.

Here's how we used an XY graph to show a robot's path with a cursor showing current position.

Tom Line 05-10-2013 00:06

Re: Plotting Location w/ Accellerometer Project
 
Quote:

Originally Posted by Joe Ross (Post 1294649)
Here's how we uses an XY graph to show a robot's path with a cursor showing current position.

Joe, what functional purpose does the X-Y graph have?

Joe Ross 05-10-2013 11:20

Re: Plotting Location w/ Accellerometer Project
 
Quote:

Originally Posted by Tom Line (Post 1294651)
Joe, what functional purpose does the X-Y graph have?

Just for display and debugging.

Invictus3593 05-10-2013 19:41

Re: Plotting Location w/ Accellerometer Project
 
Quote:

Originally Posted by Aaron.Graeve (Post 1294615)
I would only recommend that you make sure you apply the overlay after the dashboard clears the pre-existing overlays.

That may be what I missed, it already overlays the points on a bmp of the field found here.

Quote:

Here's how we used an XY graph to show a robot's path with a cursor showing current position.
What System did you use to get the X and Y values of the robot's position?

Aaron.Graeve 06-10-2013 23:55

Re: Plotting Location w/ Accellerometer Project
 
If it already overlays the points, is there any issue?
Additionally, your robot x and y coordinates would probably be generated using the algorithm this thread was discussing earlier and pulled from the robot to the dashboard. Correct me if I am wrong, but I thing Joe used simple input controls to illustrate the point (no pun intended) of using an XY Graph.

Ether 07-10-2013 08:51

Re: Plotting Location w/ Accellerometer Project
 
Quote:

Originally Posted by Aaron.Graeve (Post 1294948)
your robot x and y coordinates would probably be generated using the algorithm this thread was discussing earlier

The equations and code for getting X, Y, and orientation from 3 omni follower wheels is discussed in Post 11 in this thread:

http://www.chiefdelphi.com/forums/sh...d.php?t=120022



Invictus3593 07-10-2013 09:06

Re: Plotting Location w/ Accellerometer Project
 
Quote:

Originally Posted by Aaron.Graeve (Post 1294948)
If it already overlays the points, is there any issue?
Additionally, your robot x and y coordinates would probably be generated using the algorithm this thread was discussing earlier and pulled from the robot to the dashboard. Correct me if I am wrong, but I thing Joe used simple input controls to illustrate the point (no pun intended) of using an XY Graph.

-That's just it, I can't get it to overlay points with the IMAQ overlay, I have yet to try Joe's method, but it looks promising!
-I did see that, and I was thinking about using the SmartDashboard to read the encoder values from the robot, just the numeric values, then do the calculations on the driver station, reducing CPU usage.


Quote:

The equations and code for getting X, Y, and orientation from 3 omni follower wheels is discussed in Post 11 in this thread:

http://www.chiefdelphi.com/forums/sh...d.php?t=120022
Thanks! I was wondering what the configuration of the wheel would look like. Also, the code really helped clear up confusion I had about how position would be calculated. So on the dashboard, one would just need to read the X, Y, and Q values and set them on the graph? The Arc & Chord pdf later in that thread helped a lot as well.


All times are GMT -5. The time now is 01:32.

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