Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Line Tracking VI. drives in half a circle...? (http://www.chiefdelphi.com/forums/showthread.php?t=90551)

Ethan Spitz 31-01-2011 19:02

Re: Line Tracking VI. drives in half a circle...?
 
Ok, let me know what happens there. IF it doesn't work, I would recheck the wiring. And calibration cause that would rule out the programming problem.

Must Be Drama 31-01-2011 19:20

Re: Line Tracking VI. drives in half a circle...?
 
Quote:

Originally Posted by Ethan Spitz (Post 1012747)
Ok, let me know what happens there. IF it doesn't work, I would recheck the wiring. And calibration cause that would rule out the programming problem.

it works; whats the problem with the default code?

Ethan Spitz 31-01-2011 19:24

Re: Line Tracking VI. drives in half a circle...?
 
Thats a good question :P. We just erased it and wrote our own code from scratch. I would suggest that since the default code isn't working.

Ethan

Must Be Drama 31-01-2011 19:26

Re: Line Tracking VI. drives in half a circle...?
 
Quote:

Originally Posted by Ethan Spitz (Post 1012768)
Thats a good question :P. We just erased it and wrote our own code from scratch. I would suggest that since the default code isn't working.

Ethan

are you willing to help us develop?

Ethan Spitz 31-01-2011 19:28

Re: Line Tracking VI. drives in half a circle...?
 
Sure. Basically you want to create nested case statements for each combination you can get with the light sensors.

How many sensors are you using? I suggest programming 2 and then adding in a 3rd after you finish that.

ShockWaveBlue 01-02-2011 12:54

Re: Line Tracking VI. drives in half a circle...?
 
The default code wants you yo use the black wire, not the white. You can just invert the signal in the tele op code and I bet it works.

IisMathwizard 01-02-2011 13:15

Possible solution
 
1 Attachment(s)
The thing our team did was decide on a setup for the sensors....
It looks something like this:
Attachment 9913
After deciding on this setup we came up with a boolean setup that would, based on which lights were coming back true, turn the robot. We also made the sensory aspect of this custom code activate by pressing and holding button one. When this happened, the robot would no longer recieve x-values from the controller but recieve x-values from the code. It still allowed for y-axis values from the contoller.

IisMathwizard 02-02-2011 12:17

Re: Line Tracking VI. drives in half a circle...?
 
Quote:

Originally Posted by Must Be Drama (Post 1012770)
are you willing to help us develop?

I would be more than happy to help you if you would like. I could give you a basic example of what the nested case structure could look like. Shoot me a PM and ill get right on it.

Wicked 02-02-2011 18:13

Re: Line Tracking VI. drives in half a circle...?
 
Thanks For The Help Everybody... when i get this code semi perfected il post it for the teams that needed help just like us... we got it to track the straight line good enough

The Trooper 05-02-2011 12:59

Re: Line Tracking VI. drives in half a circle...?
 
Quote:

Originally Posted by Ethan Spitz (Post 1012739)
Hmmm. Try writing code to see if you man say make a wheel speed up when you cover the sensor or it sees the line etc.

Also the sensor should change from green to and orange red light when its on the line. Does yours do that?

Could you please provide a screen shot of your code as to how you would recommend programming the wheels to turn?

Ethan Spitz 06-02-2011 19:54

Re: Line Tracking VI. drives in half a circle...?
 
It has case statements heavily nested in it so it won't be to much help. Basically we said if both sensors are off the line go straight, if left sensor is on the line make the right wheel spin a little faster till its off. If right is on the line, make the left wheel spin a little faster.

The middle sensor stays on at all times and if all of them end off the line, it knows which sensor saw the line last and turns that way.

Ethan


All times are GMT -5. The time now is 21:13.

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