Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Line Following (http://www.chiefdelphi.com/forums/showthread.php?t=89495)

marsperson2 18-01-2011 16:26

Line Following
 
Hello,
We are having some issues in programming the Line follower. We are using the Digital Input class and we can't get it to work. Can anyone give us a hand? Thanks in advance.

basicxman 18-01-2011 21:23

Re: Line Following
 
Could you please post precisely what issues you have? The source code you are trying would also be of help for us to debug your issue.

Have you looked at the example code? If you go to File->New->Example in WindRiver and look under VxWorks Downloadable Kernel Module, there is some Line Tracking sample code. Make sure you have all updates installed, you will need them for the sample project to be visible.

marsperson2 18-01-2011 21:28

Re: Line Following
 
Oops, when we checked the example code for line tracking the first time, we must have skipped over it.

markbabc 19-01-2011 15:14

Re: Line Following
 
Quote:

Originally Posted by basicxman (Post 1003131)
Could you please post precisely what issues you have? The source code you are trying would also be of help for us to debug your issue.

Have you looked at the example code? If you go to File->New->Example in WindRiver and look under VxWorks Downloadable Kernel Module, there is some Line Tracking sample code. Make sure you have all updates installed, you will need them for the sample project to be visible.

Hi, im also from team 2603 and we found the example code, thanks for that pointer, but we fail to see where it tells the Robot to drive. We have mainly new coders this year and its puzzling us

basicxman 19-01-2011 15:54

Re: Line Following
 
Quote:

Originally Posted by markbabc (Post 1003607)
Hi, im also from team 2603 and we found the example code, thanks for that pointer, but we fail to see where it tells the Robot to drive. We have mainly new coders this year and its puzzling us

Line leading robots generally work by following a zig zag pattern. The robot will go straight while the center line leader is active, then when the left line leader is triggered, the robot will turn right to get back on course - the right line leader of course will then turn the robot to the left when triggered.

When I'm on a development machine I will look at the line leader sample in more detail - you can PM me if you need any help programming your robot for the 2011 season.

markbabc 19-01-2011 23:14

Re: Line Following
 
Quote:

Originally Posted by basicxman (Post 1003643)
Line leading robots generally work by following a zig zag pattern. The robot will go straight while the center line leader is active, then when the left line leader is triggered, the robot will turn right to get back on course - the right line leader of course will then turn the robot to the left when triggered.

When I'm on a development machine I will look at the line leader sample in more detail - you can PM me if you need any help programming your robot for the 2011 season.

Ok we got it! It was a stupid mistake of the .out file location getting moved on us, thanks for the offer though!

basicxman 20-01-2011 13:22

Re: Line Following
 
Quote:

Originally Posted by markbabc (Post 1003996)
Ok we got it! It was a stupid mistake of the .out file location getting moved on us, thanks for the offer though!

Ah, we all forget to change FIRST Downloader Preferences sometimes :)

jwakeman 21-01-2011 18:55

Re: Line Following
 
somebody should update the eclipse plugin so you can right-click a .out and select "Deploy to Robot"

basicxman 22-01-2011 01:22

Re: Line Following
 
Quote:

Originally Posted by jwakeman (Post 1005268)
somebody should update the eclipse plugin so you can right-click a .out and select "Deploy to Robot"

I salute you! However you can already use a Run or Debug configuration, I wonder if there's an option to write to non volatile memory...

Something to check when I have a remote target to connect to...


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

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