Go to Post This only gets awkward when the girl knows more digits of pi than you do... - Walter Deitzler [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
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 18-01-2011, 16:26
marsperson2 marsperson2 is offline
Registered User
FRC #2603
 
Join Date: Feb 2010
Location: Medina
Posts: 7
marsperson2 is an unknown quantity at this point
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.
Reply With Quote
  #2   Spotlight this post!  
Unread 18-01-2011, 21:23
basicxman basicxman is offline
Emily Horsman
FRC #2200 (MMRambotics)
Team Role: Programmer
 
Join Date: Oct 2007
Rookie Year: 2007
Location: Burlington, Ontario
Posts: 971
basicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant future
Send a message via AIM to basicxman Send a message via MSN to basicxman Send a message via Yahoo to basicxman
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.
Reply With Quote
  #3   Spotlight this post!  
Unread 18-01-2011, 21:28
marsperson2 marsperson2 is offline
Registered User
FRC #2603
 
Join Date: Feb 2010
Location: Medina
Posts: 7
marsperson2 is an unknown quantity at this point
Re: Line Following

Oops, when we checked the example code for line tracking the first time, we must have skipped over it.
Reply With Quote
  #4   Spotlight this post!  
Unread 19-01-2011, 15:14
markbabc markbabc is offline
Registered User
None #2603
 
Join Date: Jan 2011
Location: USA
Posts: 2
markbabc is an unknown quantity at this point
Re: Line Following

Quote:
Originally Posted by basicxman View Post
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
Reply With Quote
  #5   Spotlight this post!  
Unread 19-01-2011, 15:54
basicxman basicxman is offline
Emily Horsman
FRC #2200 (MMRambotics)
Team Role: Programmer
 
Join Date: Oct 2007
Rookie Year: 2007
Location: Burlington, Ontario
Posts: 971
basicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant future
Send a message via AIM to basicxman Send a message via MSN to basicxman Send a message via Yahoo to basicxman
Re: Line Following

Quote:
Originally Posted by markbabc View Post
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.
Reply With Quote
  #6   Spotlight this post!  
Unread 19-01-2011, 23:14
markbabc markbabc is offline
Registered User
None #2603
 
Join Date: Jan 2011
Location: USA
Posts: 2
markbabc is an unknown quantity at this point
Re: Line Following

Quote:
Originally Posted by basicxman View Post
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!
Reply With Quote
  #7   Spotlight this post!  
Unread 20-01-2011, 13:22
basicxman basicxman is offline
Emily Horsman
FRC #2200 (MMRambotics)
Team Role: Programmer
 
Join Date: Oct 2007
Rookie Year: 2007
Location: Burlington, Ontario
Posts: 971
basicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant future
Send a message via AIM to basicxman Send a message via MSN to basicxman Send a message via Yahoo to basicxman
Re: Line Following

Quote:
Originally Posted by markbabc View Post
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
Reply With Quote
  #8   Spotlight this post!  
Unread 21-01-2011, 18:55
jwakeman jwakeman is offline
Registered User
FRC #0063 (Red Barons)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: 16510
Posts: 182
jwakeman is just really nicejwakeman is just really nicejwakeman is just really nicejwakeman is just really nicejwakeman is just really nice
Re: Line Following

somebody should update the eclipse plugin so you can right-click a .out and select "Deploy to Robot"
Reply With Quote
  #9   Spotlight this post!  
Unread 22-01-2011, 01:22
basicxman basicxman is offline
Emily Horsman
FRC #2200 (MMRambotics)
Team Role: Programmer
 
Join Date: Oct 2007
Rookie Year: 2007
Location: Burlington, Ontario
Posts: 971
basicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant future
Send a message via AIM to basicxman Send a message via MSN to basicxman Send a message via Yahoo to basicxman
Re: Line Following

Quote:
Originally Posted by jwakeman View Post
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...
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 14:05.

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